|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StreamRange< google::spanner::admin::database::v1::Database >, ListDatabases,(google::spanner::admin::database::v1::ListDatabasesRequest request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Database > >, CreateDatabase,(google::spanner::admin::database::v1::CreateDatabaseRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::Database >, GetDatabase,(google::spanner::admin::database::v1::GetDatabaseRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Database > >, UpdateDatabase,(google::spanner::admin::database::v1::UpdateDatabaseRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata > >, UpdateDatabaseDdl,(google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &request),(override)) |
|
| MOCK_METHOD (Status, DropDatabase,(google::spanner::admin::database::v1::DropDatabaseRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse >, GetDatabaseDdl,(google::spanner::admin::database::v1::GetDatabaseDdlRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(google::iam::v1::SetIamPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(google::iam::v1::GetIamPolicyRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(google::iam::v1::TestIamPermissionsRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Backup > >, CreateBackup,(google::spanner::admin::database::v1::CreateBackupRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Backup > >, CopyBackup,(google::spanner::admin::database::v1::CopyBackupRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::Backup >, GetBackup,(google::spanner::admin::database::v1::GetBackupRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::Backup >, UpdateBackup,(google::spanner::admin::database::v1::UpdateBackupRequest const &request),(override)) |
|
| MOCK_METHOD (Status, DeleteBackup,(google::spanner::admin::database::v1::DeleteBackupRequest const &request),(override)) |
|
| MOCK_METHOD (StreamRange< google::spanner::admin::database::v1::Backup >, ListBackups,(google::spanner::admin::database::v1::ListBackupsRequest request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Database > >, RestoreDatabase,(google::spanner::admin::database::v1::RestoreDatabaseRequest const &request),(override)) |
|
| MOCK_METHOD (StreamRange< google::longrunning::Operation >, ListDatabaseOperations,(google::spanner::admin::database::v1::ListDatabaseOperationsRequest request),(override)) |
|
| MOCK_METHOD (StreamRange< google::longrunning::Operation >, ListBackupOperations,(google::spanner::admin::database::v1::ListBackupOperationsRequest request),(override)) |
|
| MOCK_METHOD (StreamRange< google::spanner::admin::database::v1::DatabaseRole >, ListDatabaseRoles,(google::spanner::admin::database::v1::ListDatabaseRolesRequest request),(override)) |
|
virtual Options | options () |
|
virtual StreamRange< google::spanner::admin::database::v1::Database > | ListDatabases (google::spanner::admin::database::v1::ListDatabasesRequest request) |
|
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > | CreateDatabase (google::spanner::admin::database::v1::CreateDatabaseRequest const &request) |
|
virtual StatusOr< google::spanner::admin::database::v1::Database > | GetDatabase (google::spanner::admin::database::v1::GetDatabaseRequest const &request) |
|
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > | UpdateDatabase (google::spanner::admin::database::v1::UpdateDatabaseRequest const &request) |
|
virtual future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata > > | UpdateDatabaseDdl (google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &request) |
|
virtual Status | DropDatabase (google::spanner::admin::database::v1::DropDatabaseRequest const &request) |
|
virtual StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse > | GetDatabaseDdl (google::spanner::admin::database::v1::GetDatabaseDdlRequest const &request) |
|
virtual StatusOr< google::iam::v1::Policy > | SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request) |
|
virtual StatusOr< google::iam::v1::Policy > | GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request) |
|
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > | TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request) |
|
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > | CreateBackup (google::spanner::admin::database::v1::CreateBackupRequest const &request) |
|
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > | CopyBackup (google::spanner::admin::database::v1::CopyBackupRequest const &request) |
|
virtual StatusOr< google::spanner::admin::database::v1::Backup > | GetBackup (google::spanner::admin::database::v1::GetBackupRequest const &request) |
|
virtual StatusOr< google::spanner::admin::database::v1::Backup > | UpdateBackup (google::spanner::admin::database::v1::UpdateBackupRequest const &request) |
|
virtual Status | DeleteBackup (google::spanner::admin::database::v1::DeleteBackupRequest const &request) |
|
virtual StreamRange< google::spanner::admin::database::v1::Backup > | ListBackups (google::spanner::admin::database::v1::ListBackupsRequest request) |
|
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > | RestoreDatabase (google::spanner::admin::database::v1::RestoreDatabaseRequest const &request) |
|
virtual StreamRange< google::longrunning::Operation > | ListDatabaseOperations (google::spanner::admin::database::v1::ListDatabaseOperationsRequest request) |
|
virtual StreamRange< google::longrunning::Operation > | ListBackupOperations (google::spanner::admin::database::v1::ListBackupOperationsRequest request) |
|
virtual StreamRange< google::spanner::admin::database::v1::DatabaseRole > | ListDatabaseRoles (google::spanner::admin::database::v1::ListDatabaseRolesRequest request) |
|
A class to mock DatabaseAdminConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type DatabaseAdminClient
. To do so, construct an object of type DatabaseAdminClient
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
.