Class MockCertificateManagerConnection (2.29.0-rc)

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::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::Certificate > >

virtual UpdateCertificate(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::Certificate > >

virtual DeleteCertificate(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation 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::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMap > >

virtual UpdateCertificateMap(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMap > >

virtual DeleteCertificateMap(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation 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::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMapEntry > >

virtual UpdateCertificateMapEntry(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateMapEntry > >

virtual DeleteCertificateMapEntry(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation 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::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::DnsAuthorization > >

virtual UpdateDnsAuthorization(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::DnsAuthorization > >

virtual DeleteDnsAuthorization(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation 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::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::CertificateIssuanceConfig > >

virtual DeleteCertificateIssuanceConfig(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >

virtual ListTrustConfigs(google::cloud::certificatemanager::v1::ListTrustConfigsRequest)

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::ListTrustConfigsRequest
Returns
Type Description
StreamRange< google::cloud::certificatemanager::v1::TrustConfig >

virtual GetTrustConfig(google::cloud::certificatemanager::v1::GetTrustConfigRequest 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::GetTrustConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::certificatemanager::v1::TrustConfig >

virtual CreateTrustConfig(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::TrustConfig > >

virtual UpdateTrustConfig(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::TrustConfig > >

virtual DeleteTrustConfig(google::longrunning::Operation const &)

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::certificatemanager::v1::OperationMetadata > >