A class to mock NetworkServicesConnection.
Application developers may want to test their code with simulated responses, including errors, from an object of type NetworkServicesClient. To do so, construct an object of type NetworkServicesClient 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 ListEndpointPolicies(google::cloud::networkservices::v1::ListEndpointPoliciesRequest)
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::networkservices::v1::ListEndpointPoliciesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::EndpointPolicy > |
|
virtual GetEndpointPolicy(google::cloud::networkservices::v1::GetEndpointPolicyRequest 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::networkservices::v1::GetEndpointPolicyRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::EndpointPolicy > |
|
virtual CreateEndpointPolicy(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::networkservices::v1::EndpointPolicy > > |
|
virtual UpdateEndpointPolicy(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::networkservices::v1::EndpointPolicy > > |
|
virtual DeleteEndpointPolicy(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::networkservices::v1::OperationMetadata > > |
|
virtual ListWasmPluginVersions(google::cloud::networkservices::v1::ListWasmPluginVersionsRequest)
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::networkservices::v1::ListWasmPluginVersionsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::WasmPluginVersion > |
|
virtual GetWasmPluginVersion(google::cloud::networkservices::v1::GetWasmPluginVersionRequest 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::networkservices::v1::GetWasmPluginVersionRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::WasmPluginVersion > |
|
virtual CreateWasmPluginVersion(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::networkservices::v1::WasmPluginVersion > > |
|
virtual DeleteWasmPluginVersion(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::networkservices::v1::OperationMetadata > > |
|
virtual ListWasmPlugins(google::cloud::networkservices::v1::ListWasmPluginsRequest)
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::networkservices::v1::ListWasmPluginsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::WasmPlugin > |
|
virtual GetWasmPlugin(google::cloud::networkservices::v1::GetWasmPluginRequest 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::networkservices::v1::GetWasmPluginRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::WasmPlugin > |
|
virtual CreateWasmPlugin(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::networkservices::v1::WasmPlugin > > |
|
virtual UpdateWasmPlugin(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::networkservices::v1::WasmPlugin > > |
|
virtual DeleteWasmPlugin(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::networkservices::v1::OperationMetadata > > |
|
virtual ListGateways(google::cloud::networkservices::v1::ListGatewaysRequest)
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::networkservices::v1::ListGatewaysRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::Gateway > |
|
virtual GetGateway(google::cloud::networkservices::v1::GetGatewayRequest 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::networkservices::v1::GetGatewayRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::Gateway > |
|
virtual CreateGateway(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::networkservices::v1::Gateway > > |
|
virtual UpdateGateway(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::networkservices::v1::Gateway > > |
|
virtual DeleteGateway(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::networkservices::v1::OperationMetadata > > |
|
virtual ListGrpcRoutes(google::cloud::networkservices::v1::ListGrpcRoutesRequest)
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::networkservices::v1::ListGrpcRoutesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::GrpcRoute > |
|
virtual GetGrpcRoute(google::cloud::networkservices::v1::GetGrpcRouteRequest 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::networkservices::v1::GetGrpcRouteRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::GrpcRoute > |
|
virtual CreateGrpcRoute(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::networkservices::v1::GrpcRoute > > |
|
virtual UpdateGrpcRoute(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::networkservices::v1::GrpcRoute > > |
|
virtual DeleteGrpcRoute(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::networkservices::v1::OperationMetadata > > |
|
virtual ListHttpRoutes(google::cloud::networkservices::v1::ListHttpRoutesRequest)
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::networkservices::v1::ListHttpRoutesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::HttpRoute > |
|
virtual GetHttpRoute(google::cloud::networkservices::v1::GetHttpRouteRequest 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::networkservices::v1::GetHttpRouteRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::HttpRoute > |
|
virtual CreateHttpRoute(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::networkservices::v1::HttpRoute > > |
|
virtual UpdateHttpRoute(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::networkservices::v1::HttpRoute > > |
|
virtual DeleteHttpRoute(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::networkservices::v1::OperationMetadata > > |
|
virtual ListTcpRoutes(google::cloud::networkservices::v1::ListTcpRoutesRequest)
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::networkservices::v1::ListTcpRoutesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::TcpRoute > |
|
virtual GetTcpRoute(google::cloud::networkservices::v1::GetTcpRouteRequest 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::networkservices::v1::GetTcpRouteRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::TcpRoute > |
|
virtual CreateTcpRoute(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::networkservices::v1::TcpRoute > > |
|
virtual UpdateTcpRoute(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::networkservices::v1::TcpRoute > > |
|
virtual DeleteTcpRoute(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::networkservices::v1::OperationMetadata > > |
|
virtual ListTlsRoutes(google::cloud::networkservices::v1::ListTlsRoutesRequest)
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::networkservices::v1::ListTlsRoutesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::TlsRoute > |
|
virtual GetTlsRoute(google::cloud::networkservices::v1::GetTlsRouteRequest 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::networkservices::v1::GetTlsRouteRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::TlsRoute > |
|
virtual CreateTlsRoute(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::networkservices::v1::TlsRoute > > |
|
virtual UpdateTlsRoute(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::networkservices::v1::TlsRoute > > |
|
virtual DeleteTlsRoute(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::networkservices::v1::OperationMetadata > > |
|
virtual ListServiceBindings(google::cloud::networkservices::v1::ListServiceBindingsRequest)
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::networkservices::v1::ListServiceBindingsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::ServiceBinding > |
|
virtual GetServiceBinding(google::cloud::networkservices::v1::GetServiceBindingRequest 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::networkservices::v1::GetServiceBindingRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::ServiceBinding > |
|
virtual CreateServiceBinding(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::networkservices::v1::ServiceBinding > > |
|
virtual UpdateServiceBinding(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::networkservices::v1::ServiceBinding > > |
|
virtual DeleteServiceBinding(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::networkservices::v1::OperationMetadata > > |
|
virtual ListMeshes(google::cloud::networkservices::v1::ListMeshesRequest)
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::networkservices::v1::ListMeshesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::Mesh > |
|
virtual GetMesh(google::cloud::networkservices::v1::GetMeshRequest 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::networkservices::v1::GetMeshRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::Mesh > |
|
virtual CreateMesh(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::networkservices::v1::Mesh > > |
|
virtual UpdateMesh(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::networkservices::v1::Mesh > > |
|
virtual DeleteMesh(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::networkservices::v1::OperationMetadata > > |
|
virtual ListServiceLbPolicies(google::cloud::networkservices::v1::ListServiceLbPoliciesRequest)
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::networkservices::v1::ListServiceLbPoliciesRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::ServiceLbPolicy > |
|
virtual GetServiceLbPolicy(google::cloud::networkservices::v1::GetServiceLbPolicyRequest 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::networkservices::v1::GetServiceLbPolicyRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::ServiceLbPolicy > |
|
virtual CreateServiceLbPolicy(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::networkservices::v1::ServiceLbPolicy > > |
|
virtual UpdateServiceLbPolicy(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::networkservices::v1::ServiceLbPolicy > > |
|
virtual DeleteServiceLbPolicy(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::networkservices::v1::OperationMetadata > > |
|
virtual GetGatewayRouteView(google::cloud::networkservices::v1::GetGatewayRouteViewRequest 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::networkservices::v1::GetGatewayRouteViewRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::GatewayRouteView > |
|
virtual GetMeshRouteView(google::cloud::networkservices::v1::GetMeshRouteViewRequest 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::networkservices::v1::GetMeshRouteViewRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::networkservices::v1::MeshRouteView > |
|
virtual ListGatewayRouteViews(google::cloud::networkservices::v1::ListGatewayRouteViewsRequest)
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::networkservices::v1::ListGatewayRouteViewsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::GatewayRouteView > |
|
virtual ListMeshRouteViews(google::cloud::networkservices::v1::ListMeshRouteViewsRequest)
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::networkservices::v1::ListMeshRouteViewsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::networkservices::v1::MeshRouteView > |
|
virtual ListLocations(google::cloud::location::ListLocationsRequest)
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::location::ListLocationsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::cloud::location::Location > |
|
virtual GetLocation(google::cloud::location::GetLocationRequest 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::location::GetLocationRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::cloud::location::Location > |
|
virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest 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::iam::v1::SetIamPolicyRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::iam::v1::Policy > |
|
virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest 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::iam::v1::GetIamPolicyRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::iam::v1::Policy > |
|
virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest 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::iam::v1::TestIamPermissionsRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::iam::v1::TestIamPermissionsResponse > |
|
virtual ListOperations(google::longrunning::ListOperationsRequest)
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::longrunning::ListOperationsRequest
|
| Returns |
| Type |
Description |
StreamRange< google::longrunning::Operation > |
|
virtual GetOperation(google::longrunning::GetOperationRequest 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::longrunning::GetOperationRequest const &
|
| Returns |
| Type |
Description |
StatusOr< google::longrunning::Operation > |
|
virtual DeleteOperation(google::longrunning::DeleteOperationRequest 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::longrunning::DeleteOperationRequest const &
|
| Returns |
| Type |
Description |
Status |
|
virtual CancelOperation(google::longrunning::CancelOperationRequest 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::longrunning::CancelOperationRequest const &
|
| Returns |
| Type |
Description |
Status |
|