Class MockAppConnectorsServiceConnection (2.20.0-rc)

A class to mock AppConnectorsServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type AppConnectorsServiceClient. To do so, construct an object of type AppConnectorsServiceClient 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 ListAppConnectors(google::cloud::beyondcorp::appconnectors::v1::ListAppConnectorsRequest)

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::appconnectors::v1::ListAppConnectorsRequest
Returns
TypeDescription
StreamRange< google::cloud::beyondcorp::appconnectors::v1::AppConnector >

virtual GetAppConnector(google::cloud::beyondcorp::appconnectors::v1::GetAppConnectorRequest 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::appconnectors::v1::GetAppConnectorRequest const &
Returns
TypeDescription
StatusOr< google::cloud::beyondcorp::appconnectors::v1::AppConnector >

virtual CreateAppConnector(google::cloud::beyondcorp::appconnectors::v1::CreateAppConnectorRequest 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::appconnectors::v1::CreateAppConnectorRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnectors::v1::AppConnector > >

virtual UpdateAppConnector(google::cloud::beyondcorp::appconnectors::v1::UpdateAppConnectorRequest 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::appconnectors::v1::UpdateAppConnectorRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnectors::v1::AppConnector > >

virtual DeleteAppConnector(google::cloud::beyondcorp::appconnectors::v1::DeleteAppConnectorRequest 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::appconnectors::v1::DeleteAppConnectorRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnectors::v1::AppConnectorOperationMetadata > >

virtual ReportStatus(google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest 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::appconnectors::v1::ReportStatusRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::beyondcorp::appconnectors::v1::AppConnector > >