Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
Public Member Functions | List of all members
google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection Class Reference

A class to mock google::cloud::spanner::DatabaseAdminConnection. More...

#include <google/cloud/spanner/mocks/mock_database_admin_connection.h>

Public Member Functions

 MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Database >>, CreateDatabase,(CreateDatabaseParams),(override))
 
 MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::Database >, GetDatabase,(GetDatabaseParams),(override))
 
 MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse >, GetDatabaseDdl,(GetDatabaseDdlParams),(override))
 
 MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata >>, UpdateDatabase,(UpdateDatabaseParams),(override))
 
 MOCK_METHOD (Status, DropDatabase,(DropDatabaseParams),(override))
 
 MOCK_METHOD (spanner::ListDatabaseRange, ListDatabases,(ListDatabasesParams),(override))
 
 MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Database >>, RestoreDatabase,(RestoreDatabaseParams),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(GetIamPolicyParams),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(SetIamPolicyParams),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(TestIamPermissionsParams),(override))
 
 MOCK_METHOD (future< StatusOr< google::spanner::admin::database::v1::Backup >>, CreateBackup,(CreateBackupParams),(override))
 
 MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::Backup >, GetBackup,(GetBackupParams),(override))
 
 MOCK_METHOD (Status, DeleteBackup,(DeleteBackupParams),(override))
 
 MOCK_METHOD (spanner::ListBackupsRange, ListBackups,(ListBackupsParams),(override))
 
 MOCK_METHOD (StatusOr< google::spanner::admin::database::v1::Backup >, UpdateBackup,(UpdateBackupParams),(override))
 
 MOCK_METHOD (spanner::ListBackupOperationsRange, ListBackupOperations,(ListBackupOperationsParams),(override))
 
 MOCK_METHOD (spanner::ListDatabaseOperationsRange, ListDatabaseOperations,(ListDatabaseOperationsParams),(override))
 

Detailed Description

A class to mock google::cloud::spanner::DatabaseAdminConnection.

Application developers may want to test their code with simulated responses, including errors from a spanner::DatabaseAdminClient. To do so, construct a spanner::DatabaseAdminClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

Definition at line 35 of file mock_database_admin_connection.h.

Member Function Documentation

◆ MOCK_METHOD() [1/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( future< StatusOr< google::spanner::admin::database::v1::Backup >>  ,
CreateBackup  ,
(CreateBackupParams)  ,
(override)   
)

◆ MOCK_METHOD() [2/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( future< StatusOr< google::spanner::admin::database::v1::Database >>  ,
CreateDatabase  ,
(CreateDatabaseParams)  ,
(override)   
)

◆ MOCK_METHOD() [3/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( future< StatusOr< google::spanner::admin::database::v1::Database >>  ,
RestoreDatabase  ,
(RestoreDatabaseParams)  ,
(override)   
)

◆ MOCK_METHOD() [4/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata >>  ,
UpdateDatabase  ,
(UpdateDatabaseParams)  ,
(override)   
)

◆ MOCK_METHOD() [5/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( spanner::ListBackupOperationsRange  ,
ListBackupOperations  ,
(ListBackupOperationsParams)  ,
(override)   
)

◆ MOCK_METHOD() [6/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( spanner::ListBackupsRange  ,
ListBackups  ,
(ListBackupsParams)  ,
(override)   
)

◆ MOCK_METHOD() [7/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( spanner::ListDatabaseOperationsRange  ,
ListDatabaseOperations  ,
(ListDatabaseOperationsParams)  ,
(override)   
)

◆ MOCK_METHOD() [8/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( spanner::ListDatabaseRange  ,
ListDatabases  ,
(ListDatabasesParams)  ,
(override)   
)

◆ MOCK_METHOD() [9/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( Status  ,
DeleteBackup  ,
(DeleteBackupParams)  ,
(override)   
)

◆ MOCK_METHOD() [10/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( Status  ,
DropDatabase  ,
(DropDatabaseParams)  ,
(override)   
)

◆ MOCK_METHOD() [11/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
GetIamPolicy  ,
(GetIamPolicyParams)  ,
(override)   
)

◆ MOCK_METHOD() [12/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
SetIamPolicy  ,
(SetIamPolicyParams)  ,
(override)   
)

◆ MOCK_METHOD() [13/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::TestIamPermissionsResponse >  ,
TestIamPermissions  ,
(TestIamPermissionsParams)  ,
(override)   
)

◆ MOCK_METHOD() [14/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::spanner::admin::database::v1::Backup >  ,
GetBackup  ,
(GetBackupParams)  ,
(override)   
)

◆ MOCK_METHOD() [15/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::spanner::admin::database::v1::Backup >  ,
UpdateBackup  ,
(UpdateBackupParams)  ,
(override)   
)

◆ MOCK_METHOD() [16/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::spanner::admin::database::v1::Database >  ,
GetDatabase  ,
(GetDatabaseParams)  ,
(override)   
)

◆ MOCK_METHOD() [17/17]

google::cloud::spanner_mocks::v1::MockDatabaseAdminConnection::MOCK_METHOD ( StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse >  ,
GetDatabaseDdl  ,
(GetDatabaseDdlParams)  ,
(override)   
)