Send feedback
Class MockCertificateManagerConnection (2.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.19.0 keyboard_arrow_down
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 > >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]