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 A class to mock `CloudApiRegistryConnection`.
Application developers may want to test their code with simulated responses, including errors, from an object of type `CloudApiRegistryClient`. To do so, construct an object of type `CloudApiRegistryClient` 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 GetMcpServer(google::cloud::apiregistry::v1::GetMcpServerRequest 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::apiregistry::v1::GetMcpServerRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::apiregistry::v1::McpServer >` |   |

### virtual ListMcpServers(google::cloud::apiregistry::v1::ListMcpServersRequest)

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::apiregistry::v1::ListMcpServersRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::apiregistry::v1::McpServer >` |   |

### virtual GetMcpTool(google::cloud::apiregistry::v1::GetMcpToolRequest 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::apiregistry::v1::GetMcpToolRequest const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::apiregistry::v1::McpTool >` |   |

### virtual ListMcpTools(google::cloud::apiregistry::v1::ListMcpToolsRequest)

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::apiregistry::v1::ListMcpToolsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::apiregistry::v1::McpTool >` |   |

### 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 >` |   |