|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StreamRange< google::iam::v2::Policy >, ListPolicies,(google::iam::v2::ListPoliciesRequest request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v2::Policy >, GetPolicy,(google::iam::v2::GetPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::iam::v2::Policy > >, CreatePolicy,(google::iam::v2::CreatePolicyRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::iam::v2::Policy > >, UpdatePolicy,(google::iam::v2::UpdatePolicyRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::iam::v2::Policy > >, DeletePolicy,(google::iam::v2::DeletePolicyRequest const &request),(override)) |
|
virtual Options | options () |
|
virtual StreamRange< google::iam::v2::Policy > | ListPolicies (google::iam::v2::ListPoliciesRequest request) |
|
virtual StatusOr< google::iam::v2::Policy > | GetPolicy (google::iam::v2::GetPolicyRequest const &request) |
|
virtual future< StatusOr< google::iam::v2::Policy > > | CreatePolicy (google::iam::v2::CreatePolicyRequest const &request) |
|
virtual future< StatusOr< google::iam::v2::Policy > > | UpdatePolicy (google::iam::v2::UpdatePolicyRequest const &request) |
|
virtual future< StatusOr< google::iam::v2::Policy > > | DeletePolicy (google::iam::v2::DeletePolicyRequest const &request) |
|
A class to mock PoliciesConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type PoliciesClient
. To do so, construct an object of type PoliciesClient
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
.