Send feedback
Class MockCloudControlsPartnerCoreConnection (2.29.0-rc)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.29.0-rc keyboard_arrow_down
A class to mock CloudControlsPartnerCoreConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type CloudControlsPartnerCoreClient
. To do so, construct an object of type CloudControlsPartnerCoreClient
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 GetWorkload(google::cloud::cloudcontrolspartner::v1::GetWorkloadRequest 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::cloudcontrolspartner::v1::GetWorkloadRequest const &
Returns
Type
Description
StatusOr< google::cloud::cloudcontrolspartner::v1::Workload >
virtual ListWorkloads(google::cloud::cloudcontrolspartner::v1::ListWorkloadsRequest)
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::cloudcontrolspartner::v1::ListWorkloadsRequest
Returns
Type
Description
StreamRange< google::cloud::cloudcontrolspartner::v1::Workload >
virtual GetCustomer(google::cloud::cloudcontrolspartner::v1::GetCustomerRequest 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::cloudcontrolspartner::v1::GetCustomerRequest const &
Returns
Type
Description
StatusOr< google::cloud::cloudcontrolspartner::v1::Customer >
virtual ListCustomers(google::cloud::cloudcontrolspartner::v1::ListCustomersRequest)
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::cloudcontrolspartner::v1::ListCustomersRequest
Returns
Type
Description
StreamRange< google::cloud::cloudcontrolspartner::v1::Customer >
virtual GetEkmConnections(google::cloud::cloudcontrolspartner::v1::GetEkmConnectionsRequest 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::cloudcontrolspartner::v1::GetEkmConnectionsRequest const &
Returns
Type
Description
StatusOr< google::cloud::cloudcontrolspartner::v1::EkmConnections >
virtual GetPartnerPermissions(google::cloud::cloudcontrolspartner::v1::GetPartnerPermissionsRequest 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::cloudcontrolspartner::v1::GetPartnerPermissionsRequest const &
Returns
Type
Description
StatusOr< google::cloud::cloudcontrolspartner::v1::PartnerPermissions >
virtual ListAccessApprovalRequests(google::cloud::cloudcontrolspartner::v1::ListAccessApprovalRequestsRequest)
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::cloudcontrolspartner::v1::ListAccessApprovalRequestsRequest
Returns
Type
Description
StreamRange< google::cloud::cloudcontrolspartner::v1::AccessApprovalRequest >
virtual GetPartner(google::cloud::cloudcontrolspartner::v1::GetPartnerRequest 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::cloudcontrolspartner::v1::GetPartnerRequest const &
Returns
Type
Description
StatusOr< google::cloud::cloudcontrolspartner::v1::Partner >
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 2024-10-04 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 2024-10-04 UTC."],[],[]]