19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H
22#include "google/cloud/spanner/admin/database_admin_connection.h"
23#include <gmock/gmock.h>
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
31
32
33
34
35
36
37
38
39
40
41
42
43
44
51 StreamRange<
google::spanner::admin::database::v1::Database>,
53 (
google::spanner::admin::database::v1::ListDatabasesRequest request),
57 future<StatusOr<
google::spanner::admin::database::v1::Database>>,
59 (
google::spanner::admin::database::v1::CreateDatabaseRequest
const&
64 StatusOr<
google::spanner::admin::database::v1::Database>, GetDatabase,
65 (
google::spanner::admin::database::v1::GetDatabaseRequest
const& request),
69 future<StatusOr<
google::spanner::admin::database::v1::Database>>,
71 (
google::spanner::admin::database::v1::UpdateDatabaseRequest
const&
77 google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>,
79 (
google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
83 MOCK_METHOD(
Status, DropDatabase,
84 (
google::spanner::admin::database::v1::DropDatabaseRequest
const&
89 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>,
91 (
google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
95 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, SetIamPolicy,
96 (
google::iam::v1::SetIamPolicyRequest
const& request),
99 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, GetIamPolicy,
100 (
google::iam::v1::GetIamPolicyRequest
const& request),
103 MOCK_METHOD(StatusOr<
google::iam::v1::TestIamPermissionsResponse>,
105 (
google::iam::v1::TestIamPermissionsRequest
const& request),
108 MOCK_METHOD(
future<StatusOr<
google::spanner::admin::database::v1::Backup>>,
110 (
google::spanner::admin::database::v1::CreateBackupRequest
const&
115 future<StatusOr<
google::spanner::admin::database::v1::Backup>>,
117 (
google::spanner::admin::database::v1::CopyBackupRequest
const& request),
121 StatusOr<
google::spanner::admin::database::v1::Backup>, GetBackup,
122 (
google::spanner::admin::database::v1::GetBackupRequest
const& request),
125 MOCK_METHOD(StatusOr<
google::spanner::admin::database::v1::Backup>,
127 (
google::spanner::admin::database::v1::UpdateBackupRequest
const&
131 MOCK_METHOD(
Status, DeleteBackup,
132 (
google::spanner::admin::database::v1::DeleteBackupRequest
const&
137 StreamRange<
google::spanner::admin::database::v1::Backup>, ListBackups,
138 (
google::spanner::admin::database::v1::ListBackupsRequest request),
142 future<StatusOr<
google::spanner::admin::database::v1::Database>>,
144 (
google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
149 StreamRange<
google::longrunning::Operation>, ListDatabaseOperations,
150 (
google::spanner::admin::database::v1::ListDatabaseOperationsRequest
154 MOCK_METHOD(StreamRange<
google::longrunning::Operation>, ListBackupOperations,
155 (
google::spanner::admin::database::v1::ListBackupOperationsRequest
160 StreamRange<
google::spanner::admin::database::v1::DatabaseRole>,
162 (
google::spanner::admin::database::v1::ListDatabaseRolesRequest request),
166GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
friend friend class future
The DatabaseAdminConnection object for DatabaseAdminClient.
Definition: database_admin_connection.h:64
A class to mock DatabaseAdminConnection.
Definition: mock_database_admin_connection.h:46
Definition: mock_database_admin_connection.h:27
Definition: database_admin_client.h:34