Send feedback
Class MockTelcoAutomationConnection (2.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.27.0 keyboard_arrow_down
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(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::telcoautomation::v1::OrchestrationCluster > >
virtual DeleteOrchestrationCluster(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::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(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::telcoautomation::v1::EdgeSlm > >
virtual DeleteEdgeSlm(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::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 >
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-03-21 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-03-21 UTC."],[[["This page documents the `MockTelcoAutomationConnection` class, which is designed for mocking `TelcoAutomationConnection` in testing environments, specifically for the C++ library."],["The class allows application developers to simulate responses, including errors, from a `TelcoAutomationClient` during testing, utilizing the Google Test framework to define the mock's behavior."],["The page details various virtual functions implemented using gMock's `MOCK_METHOD()`, such as `ListOrchestrationClusters`, `GetEdgeSlm`, `CreateBlueprint`, `UpdateDeployment` and many more, to help program the behavior of the mocks."],["The latest release candidate is version 2.37.0-rc, with several previous versions like 2.36.0, 2.35.0, and so on, down to 2.19.0, also available."],["It showcases an example from the BigQuery library, illustrating how the principles of the mock connections can be applied to other Google Cloud library pairs."]]],[]]