|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, CreateDataPolicy,(google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, UpdateDataPolicy,(google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, RenameDataPolicy,(google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (Status, DeleteDataPolicy,(google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, GetDataPolicy,(google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy >, ListDataPolicies,(google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(google::iam::v1::GetIamPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(google::iam::v1::SetIamPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(google::iam::v1::TestIamPermissionsRequest const &request),(override)) |
|
virtual Options | options () |
|
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > | CreateDataPolicy (google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &request) |
|
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > | UpdateDataPolicy (google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &request) |
|
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > | RenameDataPolicy (google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &request) |
|
virtual Status | DeleteDataPolicy (google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &request) |
|
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > | GetDataPolicy (google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &request) |
|
virtual StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy > | ListDataPolicies (google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest request) |
|
virtual StatusOr< google::iam::v1::Policy > | GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request) |
|
virtual StatusOr< google::iam::v1::Policy > | SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request) |
|
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > | TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request) |
|
A class to mock DataPolicyServiceConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type DataPolicyServiceClient
. To do so, construct an object of type DataPolicyServiceClient
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
.