3.8.0-rc 3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 A class to mock `LicenseManagerConnection`.
Application developers may want to test their code with simulated responses, including errors, from an object of type `LicenseManagerClient`. To do so, construct an object of type `LicenseManagerClient` with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

###### See Also

[This example](https://cloud.google.com/cpp/docs/reference/bigquery/latest/bigquery-read-mock) for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of `*Client` and `*Connection`.

## Functions

### virtual options()

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Options` |   |

### virtual ListConfigurations(google::cloud::licensemanager::v1::ListConfigurationsRequest)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::ListConfigurationsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::licensemanager::v1::Configuration >` |   |

### virtual GetConfiguration(google::cloud::licensemanager::v1::GetConfigurationRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::GetConfigurationRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::licensemanager::v1::Configuration >` |   |

### virtual CreateConfiguration(google::longrunning::Operation const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::licensemanager::v1::Configuration > >` |   |

### virtual UpdateConfiguration(google::longrunning::Operation const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::licensemanager::v1::Configuration > >` |   |

### virtual DeleteConfiguration(google::longrunning::Operation const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::licensemanager::v1::OperationMetadata > >` |   |

### virtual ListInstances(google::cloud::licensemanager::v1::ListInstancesRequest)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::ListInstancesRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::licensemanager::v1::Instance >` |   |

### virtual GetInstance(google::cloud::licensemanager::v1::GetInstanceRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::GetInstanceRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::licensemanager::v1::Instance >` |   |

### virtual DeactivateConfiguration(google::longrunning::Operation const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::licensemanager::v1::Configuration > >` |   |

### virtual ReactivateConfiguration(google::longrunning::Operation const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::licensemanager::v1::Configuration > >` |   |

### virtual QueryConfigurationLicenseUsage(google::cloud::licensemanager::v1::QueryConfigurationLicenseUsageRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::QueryConfigurationLicenseUsageRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::licensemanager::v1::QueryConfigurationLicenseUsageResponse >` |   |

### virtual AggregateUsage(google::cloud::licensemanager::v1::AggregateUsageRequest)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::AggregateUsageRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::licensemanager::v1::Usage >` |   |

### virtual ListProducts(google::cloud::licensemanager::v1::ListProductsRequest)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::ListProductsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::licensemanager::v1::Product >` |   |

### virtual GetProduct(google::cloud::licensemanager::v1::GetProductRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::licensemanager::v1::GetProductRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::licensemanager::v1::Product >` |   |

### virtual ListLocations(google::cloud::location::ListLocationsRequest)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::location::ListLocationsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::location::Location >` |   |

### virtual GetLocation(google::cloud::location::GetLocationRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::location::GetLocationRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::location::Location >` |   |

### virtual ListOperations(google::longrunning::ListOperationsRequest)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::ListOperationsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::longrunning::Operation >` |   |

### virtual GetOperation(google::longrunning::GetOperationRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::GetOperationRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### virtual DeleteOperation(google::longrunning::DeleteOperationRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::DeleteOperationRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` |   |

### virtual CancelOperation(google::longrunning::CancelOperationRequest const \&)

This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::CancelOperationRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` |   |