A class to mock TelcoAutomationConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type TelcoAutomationClient
. To do so, construct an object of type TelcoAutomationClient
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 ListOrchestrationClusters(google::cloud::telcoautomation::v1::ListOrchestrationClustersRequest)
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::telcoautomation::v1::ListOrchestrationClustersRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::OrchestrationCluster > |
|
virtual GetOrchestrationCluster(google::cloud::telcoautomation::v1::GetOrchestrationClusterRequest 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::telcoautomation::v1::GetOrchestrationClusterRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::OrchestrationCluster > |
|
virtual CreateOrchestrationCluster(ExperimentalTag, google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters |
Name |
Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::telcoautomation::v1::OrchestrationCluster > > |
|
virtual DeleteOrchestrationCluster(ExperimentalTag, google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters |
Name |
Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::telcoautomation::v1::OperationMetadata > > |
|
virtual ListEdgeSlms(google::cloud::telcoautomation::v1::ListEdgeSlmsRequest)
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::telcoautomation::v1::ListEdgeSlmsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::EdgeSlm > |
|
virtual GetEdgeSlm(google::cloud::telcoautomation::v1::GetEdgeSlmRequest 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::telcoautomation::v1::GetEdgeSlmRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::EdgeSlm > |
|
virtual CreateEdgeSlm(ExperimentalTag, google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters |
Name |
Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::telcoautomation::v1::EdgeSlm > > |
|
virtual DeleteEdgeSlm(ExperimentalTag, google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters |
Name |
Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::telcoautomation::v1::OperationMetadata > > |
|
virtual CreateBlueprint(google::cloud::telcoautomation::v1::CreateBlueprintRequest 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::telcoautomation::v1::CreateBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual UpdateBlueprint(google::cloud::telcoautomation::v1::UpdateBlueprintRequest 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::telcoautomation::v1::UpdateBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual GetBlueprint(google::cloud::telcoautomation::v1::GetBlueprintRequest 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::telcoautomation::v1::GetBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual DeleteBlueprint(google::cloud::telcoautomation::v1::DeleteBlueprintRequest 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::telcoautomation::v1::DeleteBlueprintRequest const &
|
Returns |
Type |
Description |
Status |
|
virtual ListBlueprints(google::cloud::telcoautomation::v1::ListBlueprintsRequest)
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::telcoautomation::v1::ListBlueprintsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual ApproveBlueprint(google::cloud::telcoautomation::v1::ApproveBlueprintRequest 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::telcoautomation::v1::ApproveBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual ProposeBlueprint(google::cloud::telcoautomation::v1::ProposeBlueprintRequest 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::telcoautomation::v1::ProposeBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual RejectBlueprint(google::cloud::telcoautomation::v1::RejectBlueprintRequest 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::telcoautomation::v1::RejectBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual ListBlueprintRevisions(google::cloud::telcoautomation::v1::ListBlueprintRevisionsRequest)
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::telcoautomation::v1::ListBlueprintRevisionsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual SearchBlueprintRevisions(google::cloud::telcoautomation::v1::SearchBlueprintRevisionsRequest)
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::telcoautomation::v1::SearchBlueprintRevisionsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::Blueprint > |
|
virtual SearchDeploymentRevisions(google::cloud::telcoautomation::v1::SearchDeploymentRevisionsRequest)
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::telcoautomation::v1::SearchDeploymentRevisionsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::Deployment > |
|
virtual DiscardBlueprintChanges(google::cloud::telcoautomation::v1::DiscardBlueprintChangesRequest 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::telcoautomation::v1::DiscardBlueprintChangesRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::DiscardBlueprintChangesResponse > |
|
virtual ListPublicBlueprints(google::cloud::telcoautomation::v1::ListPublicBlueprintsRequest)
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::telcoautomation::v1::ListPublicBlueprintsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::PublicBlueprint > |
|
virtual GetPublicBlueprint(google::cloud::telcoautomation::v1::GetPublicBlueprintRequest 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::telcoautomation::v1::GetPublicBlueprintRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::PublicBlueprint > |
|
virtual CreateDeployment(google::cloud::telcoautomation::v1::CreateDeploymentRequest 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::telcoautomation::v1::CreateDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Deployment > |
|
virtual UpdateDeployment(google::cloud::telcoautomation::v1::UpdateDeploymentRequest 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::telcoautomation::v1::UpdateDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Deployment > |
|
virtual GetDeployment(google::cloud::telcoautomation::v1::GetDeploymentRequest 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::telcoautomation::v1::GetDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Deployment > |
|
virtual RemoveDeployment(google::cloud::telcoautomation::v1::RemoveDeploymentRequest 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::telcoautomation::v1::RemoveDeploymentRequest const &
|
Returns |
Type |
Description |
Status |
|
virtual ListDeployments(google::cloud::telcoautomation::v1::ListDeploymentsRequest)
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::telcoautomation::v1::ListDeploymentsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::Deployment > |
|
virtual ListDeploymentRevisions(google::cloud::telcoautomation::v1::ListDeploymentRevisionsRequest)
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::telcoautomation::v1::ListDeploymentRevisionsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::Deployment > |
|
virtual DiscardDeploymentChanges(google::cloud::telcoautomation::v1::DiscardDeploymentChangesRequest 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::telcoautomation::v1::DiscardDeploymentChangesRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::DiscardDeploymentChangesResponse > |
|
virtual ApplyDeployment(google::cloud::telcoautomation::v1::ApplyDeploymentRequest 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::telcoautomation::v1::ApplyDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Deployment > |
|
virtual ComputeDeploymentStatus(google::cloud::telcoautomation::v1::ComputeDeploymentStatusRequest 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::telcoautomation::v1::ComputeDeploymentStatusRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::ComputeDeploymentStatusResponse > |
|
virtual RollbackDeployment(google::cloud::telcoautomation::v1::RollbackDeploymentRequest 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::telcoautomation::v1::RollbackDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::Deployment > |
|
virtual GetHydratedDeployment(google::cloud::telcoautomation::v1::GetHydratedDeploymentRequest 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::telcoautomation::v1::GetHydratedDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment > |
|
virtual ListHydratedDeployments(google::cloud::telcoautomation::v1::ListHydratedDeploymentsRequest)
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::telcoautomation::v1::ListHydratedDeploymentsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::telcoautomation::v1::HydratedDeployment > |
|
virtual UpdateHydratedDeployment(google::cloud::telcoautomation::v1::UpdateHydratedDeploymentRequest 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::telcoautomation::v1::UpdateHydratedDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment > |
|
virtual ApplyHydratedDeployment(google::cloud::telcoautomation::v1::ApplyHydratedDeploymentRequest 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::telcoautomation::v1::ApplyHydratedDeploymentRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment > |
|