Class MockCertificateManagerConnection (2.18.0)

A class to mock CertificateManagerConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type CertificateManagerClient. To do so, construct an object of type CertificateManagerClient 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
Type Description
Options

virtual ListCertificates(google::cloud::certificatemanager::v1::ListCertificatesRequest)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::ListCertificatesRequest
Returns
Type Description
StreamRange< google::cloud::certificatemanager::v1::Certificate >

virtual GetCertificate(google::cloud::certificatemanager::v1::GetCertificateRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::GetCertificateRequest const &
Returns
Type Description
StatusOr< google::cloud::certificatemanager::v1::Certificate >

virtual CreateCertificate(google::cloud::certificatemanager::v1::CreateCertificateRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::CreateCertificateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::Certificate > >

virtual UpdateCertificate(google::cloud::certificatemanager::v1::UpdateCertificateRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::UpdateCertificateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::Certificate > >

virtual DeleteCertificate(google::cloud::certificatemanager::v1::DeleteCertificateRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::DeleteCertificateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >

virtual ListCertificateMaps(google::cloud::certificatemanager::v1::ListCertificateMapsRequest)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::ListCertificateMapsRequest
Returns
Type Description
StreamRange< google::cloud::certificatemanager::v1::CertificateMap >

virtual GetCertificateMap(google::cloud::certificatemanager::v1::GetCertificateMapRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::GetCertificateMapRequest const &
Returns
Type Description
StatusOr< google::cloud::certificatemanager::v1::CertificateMap >

virtual CreateCertificateMap(google::cloud::certificatemanager::v1::CreateCertificateMapRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::CreateCertificateMapRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMap > >

virtual UpdateCertificateMap(google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMap > >

virtual DeleteCertificateMap(google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >

virtual ListCertificateMapEntries(google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest
Returns
Type Description
StreamRange< google::cloud::certificatemanager::v1::CertificateMapEntry >

virtual GetCertificateMapEntry(google::cloud::certificatemanager::v1::GetCertificateMapEntryRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::GetCertificateMapEntryRequest const &
Returns
Type Description
StatusOr< google::cloud::certificatemanager::v1::CertificateMapEntry >

virtual CreateCertificateMapEntry(google::cloud::certificatemanager::v1::CreateCertificateMapEntryRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::CreateCertificateMapEntryRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMapEntry > >

virtual UpdateCertificateMapEntry(google::cloud::certificatemanager::v1::UpdateCertificateMapEntryRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::UpdateCertificateMapEntryRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMapEntry > >

virtual DeleteCertificateMapEntry(google::cloud::certificatemanager::v1::DeleteCertificateMapEntryRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::DeleteCertificateMapEntryRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >

virtual ListDnsAuthorizations(google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest
Returns
Type Description
StreamRange< google::cloud::certificatemanager::v1::DnsAuthorization >

virtual GetDnsAuthorization(google::cloud::certificatemanager::v1::GetDnsAuthorizationRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::GetDnsAuthorizationRequest const &
Returns
Type Description
StatusOr< google::cloud::certificatemanager::v1::DnsAuthorization >

virtual CreateDnsAuthorization(google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::DnsAuthorization > >

virtual UpdateDnsAuthorization(google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::DnsAuthorization > >

virtual DeleteDnsAuthorization(google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >

virtual ListCertificateIssuanceConfigs(google::cloud::certificatemanager::v1::ListCertificateIssuanceConfigsRequest)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::ListCertificateIssuanceConfigsRequest
Returns
Type Description
StreamRange< google::cloud::certificatemanager::v1::CertificateIssuanceConfig >

virtual GetCertificateIssuanceConfig(google::cloud::certificatemanager::v1::GetCertificateIssuanceConfigRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::GetCertificateIssuanceConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::certificatemanager::v1::CertificateIssuanceConfig >

virtual CreateCertificateIssuanceConfig(google::cloud::certificatemanager::v1::CreateCertificateIssuanceConfigRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::CreateCertificateIssuanceConfigRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateIssuanceConfig > >

virtual DeleteCertificateIssuanceConfig(google::cloud::certificatemanager::v1::DeleteCertificateIssuanceConfigRequest const &)

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

Parameter
Name Description
request google::cloud::certificatemanager::v1::DeleteCertificateIssuanceConfigRequest const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >