Send feedback
Class MockEdgeContainerConnection (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 EdgeContainerConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type EdgeContainerClient
. To do so, construct an object of type EdgeContainerClient
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 ListClusters(google::cloud::edgecontainer::v1::ListClustersRequest)
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::edgecontainer::v1::ListClustersRequest
Returns Type Description StreamRange< google::cloud::edgecontainer::v1::Cluster >
virtual GetCluster(google::cloud::edgecontainer::v1::GetClusterRequest 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::edgecontainer::v1::GetClusterRequest const &
Returns Type Description StatusOr< google::cloud::edgecontainer::v1::Cluster >
virtual CreateCluster(google::cloud::edgecontainer::v1::CreateClusterRequest 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::edgecontainer::v1::CreateClusterRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::Cluster > >
virtual UpdateCluster(google::cloud::edgecontainer::v1::UpdateClusterRequest 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::edgecontainer::v1::UpdateClusterRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::Cluster > >
virtual DeleteCluster(google::cloud::edgecontainer::v1::DeleteClusterRequest 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::edgecontainer::v1::DeleteClusterRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::OperationMetadata > >
virtual GenerateAccessToken(google::cloud::edgecontainer::v1::GenerateAccessTokenRequest 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::edgecontainer::v1::GenerateAccessTokenRequest const &
Returns Type Description StatusOr< google::cloud::edgecontainer::v1::GenerateAccessTokenResponse >
virtual ListNodePools(google::cloud::edgecontainer::v1::ListNodePoolsRequest)
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::edgecontainer::v1::ListNodePoolsRequest
Returns Type Description StreamRange< google::cloud::edgecontainer::v1::NodePool >
virtual GetNodePool(google::cloud::edgecontainer::v1::GetNodePoolRequest 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::edgecontainer::v1::GetNodePoolRequest const &
Returns Type Description StatusOr< google::cloud::edgecontainer::v1::NodePool >
virtual CreateNodePool(google::cloud::edgecontainer::v1::CreateNodePoolRequest 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::edgecontainer::v1::CreateNodePoolRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::NodePool > >
virtual UpdateNodePool(google::cloud::edgecontainer::v1::UpdateNodePoolRequest 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::edgecontainer::v1::UpdateNodePoolRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::NodePool > >
virtual DeleteNodePool(google::cloud::edgecontainer::v1::DeleteNodePoolRequest 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::edgecontainer::v1::DeleteNodePoolRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::OperationMetadata > >
virtual ListMachines(google::cloud::edgecontainer::v1::ListMachinesRequest)
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::edgecontainer::v1::ListMachinesRequest
Returns Type Description StreamRange< google::cloud::edgecontainer::v1::Machine >
virtual GetMachine(google::cloud::edgecontainer::v1::GetMachineRequest 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::edgecontainer::v1::GetMachineRequest const &
Returns Type Description StatusOr< google::cloud::edgecontainer::v1::Machine >
virtual ListVpnConnections(google::cloud::edgecontainer::v1::ListVpnConnectionsRequest)
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::edgecontainer::v1::ListVpnConnectionsRequest
Returns Type Description StreamRange< google::cloud::edgecontainer::v1::VpnConnection >
virtual GetVpnConnection(google::cloud::edgecontainer::v1::GetVpnConnectionRequest 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::edgecontainer::v1::GetVpnConnectionRequest const &
Returns Type Description StatusOr< google::cloud::edgecontainer::v1::VpnConnection >
virtual CreateVpnConnection(google::cloud::edgecontainer::v1::CreateVpnConnectionRequest 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::edgecontainer::v1::CreateVpnConnectionRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::v1::VpnConnection > >
virtual DeleteVpnConnection(google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest 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::edgecontainer::v1::DeleteVpnConnectionRequest const &
Returns Type Description future< StatusOr< google::cloud::edgecontainer::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-27 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-27 UTC."],[],[]]