Class MockCertificateManagerConnection (2.22.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
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::ListCertificatesRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::GetCertificateRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::CreateCertificateRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::UpdateCertificateRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::DeleteCertificateRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::ListCertificateMapsRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::GetCertificateMapRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::CreateCertificateMapRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::GetCertificateMapEntryRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::CreateCertificateMapEntryRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::UpdateCertificateMapEntryRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::DeleteCertificateMapEntryRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::GetDnsAuthorizationRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::ListCertificateIssuanceConfigsRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::GetCertificateIssuanceConfigRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::CreateCertificateIssuanceConfigRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::certificatemanager::v1::DeleteCertificateIssuanceConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >