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>
34 StreamRange<
google::spanner::admin::database::v1::Database>,
36 (
google::spanner::admin::database::v1::ListDatabasesRequest request),
40 future<StatusOr<
google::spanner::admin::database::v1::Database>>,
42 (
google::spanner::admin::database::v1::CreateDatabaseRequest
const&
47 StatusOr<
google::spanner::admin::database::v1::Database>, GetDatabase,
48 (
google::spanner::admin::database::v1::GetDatabaseRequest
const& request),
53 google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>,
55 (
google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
60 (
google::spanner::admin::database::v1::DropDatabaseRequest
const&
65 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>,
67 (
google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
71 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, SetIamPolicy,
72 (
google::iam::v1::SetIamPolicyRequest
const& request),
75 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, GetIamPolicy,
76 (
google::iam::v1::GetIamPolicyRequest
const& request),
79 MOCK_METHOD(StatusOr<
google::iam::v1::TestIamPermissionsResponse>,
81 (
google::iam::v1::TestIamPermissionsRequest
const& request),
84 MOCK_METHOD(
future<StatusOr<
google::spanner::admin::database::v1::Backup>>,
86 (
google::spanner::admin::database::v1::CreateBackupRequest
const&
91 StatusOr<
google::spanner::admin::database::v1::Backup>, GetBackup,
92 (
google::spanner::admin::database::v1::GetBackupRequest
const& request),
95 MOCK_METHOD(StatusOr<
google::spanner::admin::database::v1::Backup>,
97 (
google::spanner::admin::database::v1::UpdateBackupRequest
const&
102 (
google::spanner::admin::database::v1::DeleteBackupRequest
const&
107 StreamRange<
google::spanner::admin::database::v1::Backup>, ListBackups,
108 (
google::spanner::admin::database::v1::ListBackupsRequest request),
112 future<StatusOr<
google::spanner::admin::database::v1::Database>>,
114 (
google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
119 StreamRange<
google::longrunning::Operation>, ListDatabaseOperations,
120 (
google::spanner::admin::database::v1::ListDatabaseOperationsRequest
124 MOCK_METHOD(StreamRange<
google::longrunning::Operation>, ListBackupOperations,
125 (
google::spanner::admin::database::v1::ListBackupOperationsRequest