15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H
18#include "google/cloud/spanner/database_admin_connection.h"
19#include "google/cloud/spanner/version.h"
20#include <gmock/gmock.h>
25GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
28
29
30
31
32
33
34
38 MOCK_METHOD(
future<StatusOr<
google::spanner::admin::database::v1::Database>>,
40 MOCK_METHOD(StatusOr<
google::spanner::admin::database::v1::Database>,
43 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>,
47 google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>,
52 MOCK_METHOD(
future<StatusOr<
google::spanner::admin::database::v1::Database>>,
54 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, GetIamPolicy,
56 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, SetIamPolicy,
58 MOCK_METHOD(StatusOr<
google::iam::v1::TestIamPermissionsResponse>,
60 MOCK_METHOD(
future<StatusOr<
google::spanner::admin::database::v1::Backup>>,
62 MOCK_METHOD(StatusOr<
google::spanner::admin::database::v1::Backup>, GetBackup,
67 MOCK_METHOD(StatusOr<
google::spanner::admin::database::v1::Backup>,
69 MOCK_METHOD(
spanner::ListBackupOperationsRange, ListBackupOperations,
71 MOCK_METHOD(
spanner::ListDatabaseOperationsRange, ListDatabaseOperations,
75GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
friend friend class future
A connection to the Cloud Spanner instance administration service.
Definition: database_admin_connection.h:105
A class to mock google::cloud::spanner::DatabaseAdminConnection.
Definition: mock_database_admin_connection.h:36
Define classes to mock the Cloud Spanner C++ client APIs.
Definition: mock_database_admin_connection.h:24
Contains all the Cloud Spanner C++ client types and functions.
Definition: backoff_policy.h:23
Wrap the arguments for CreateBackup().
Definition: database_admin_connection.h:181
Wrap the arguments for CreateDatabase().
Definition: database_admin_connection.h:119
Wrap the arguments for DeleteBackup().
Definition: database_admin_connection.h:205
Wrap the arguments for DropDatabase().
Definition: database_admin_connection.h:149
Wrap the arguments for GetBackup().
Definition: database_admin_connection.h:199
Wrap the arguments for GetDatabaseDdl().
Definition: database_admin_connection.h:135
Wrap the arguments for GetDatabase().
Definition: database_admin_connection.h:129
Wrap the arguments for GetIamPolicy().
Definition: database_admin_connection.h:161
Wrap the arguments for ListBackupOperations().
Definition: database_admin_connection.h:233
Wrap the arguments for ListBackups().
Definition: database_admin_connection.h:211
Wrap the arguments for ListDatabaseOperations().
Definition: database_admin_connection.h:240
Wrap the arguments for ListDatabases().
Definition: database_admin_connection.h:155
Wrap the arguments for RestoreDatabase().
Definition: database_admin_connection.h:218
Wrap the arguments for SetIamPolicy().
Definition: database_admin_connection.h:167
Wrap the arguments for TestIamPermissions().
Definition: database_admin_connection.h:174
Wrap the arguments for UpdateBackup().
Definition: database_admin_connection.h:228
Wrap the arguments for UpdateDatabase().
Definition: database_admin_connection.h:141