Class MockAppConnectionsServiceConnection (2.15.0)

A class to mock AppConnectionsServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type AppConnectionsServiceClient. To do so, construct an object of type AppConnectionsServiceClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See Also

This example 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's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
Options

virtual ListAppConnections(google::cloud::beyondcorp::appconnections::v1::ListAppConnectionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::beyondcorp::appconnections::v1::ListAppConnectionsRequest
Returns
TypeDescription
StreamRange< google::cloud::beyondcorp::appconnections::v1::AppConnection >

virtual GetAppConnection(google::cloud::beyondcorp::appconnections::v1::GetAppConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::beyondcorp::appconnections::v1::GetAppConnectionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::beyondcorp::appconnections::v1::AppConnection >

virtual CreateAppConnection(google::cloud::beyondcorp::appconnections::v1::CreateAppConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::beyondcorp::appconnections::v1::CreateAppConnectionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnections::v1::AppConnection > >

virtual UpdateAppConnection(google::cloud::beyondcorp::appconnections::v1::UpdateAppConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::beyondcorp::appconnections::v1::UpdateAppConnectionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnections::v1::AppConnection > >

virtual DeleteAppConnection(google::cloud::beyondcorp::appconnections::v1::DeleteAppConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::beyondcorp::appconnections::v1::DeleteAppConnectionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnections::v1::AppConnectionOperationMetadata > >

virtual ResolveAppConnections(google::cloud::beyondcorp::appconnections::v1::ResolveAppConnectionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::beyondcorp::appconnections::v1::ResolveAppConnectionsRequest
Returns
TypeDescription
StreamRange< google::cloud::beyondcorp::appconnections::v1::ResolveAppConnectionsResponse::AppConnectionDetails >