19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ADMIN_MOCKS_MOCK_BIGTABLE_TABLE_ADMIN_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ADMIN_MOCKS_MOCK_BIGTABLE_TABLE_ADMIN_CONNECTION_H
22#include "google/cloud/bigtable/admin/bigtable_table_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
50 MOCK_METHOD(StatusOr<
google::bigtable::admin::v2::Table>, CreateTable,
51 (
google::bigtable::admin::v2::CreateTableRequest
const& request),
54 MOCK_METHOD(StreamRange<
google::bigtable::admin::v2::Table>, ListTables,
55 (
google::bigtable::admin::v2::ListTablesRequest request),
58 MOCK_METHOD(StatusOr<
google::bigtable::admin::v2::Table>, GetTable,
59 (
google::bigtable::admin::v2::GetTableRequest
const& request),
62 MOCK_METHOD(
future<StatusOr<
google::bigtable::admin::v2::Table>>, UpdateTable,
63 (
google::bigtable::admin::v2::UpdateTableRequest
const& request),
66 MOCK_METHOD(
Status, DeleteTable,
67 (
google::bigtable::admin::v2::DeleteTableRequest
const& request),
71 future<StatusOr<
google::bigtable::admin::v2::Table>>, UndeleteTable,
72 (
google::bigtable::admin::v2::UndeleteTableRequest
const& request),
76 StatusOr<
google::bigtable::admin::v2::Table>, ModifyColumnFamilies,
77 (
google::bigtable::admin::v2::ModifyColumnFamiliesRequest
const& request),
80 MOCK_METHOD(
Status, DropRowRange,
81 (
google::bigtable::admin::v2::DropRowRangeRequest
const& request),
85 StatusOr<
google::bigtable::admin::v2::GenerateConsistencyTokenResponse>,
86 GenerateConsistencyToken,
87 (
google::bigtable::admin::v2::GenerateConsistencyTokenRequest
const&
92 StatusOr<
google::bigtable::admin::v2::CheckConsistencyResponse>,
94 (
google::bigtable::admin::v2::CheckConsistencyRequest
const& request),
97 MOCK_METHOD(
future<StatusOr<
google::bigtable::admin::v2::Backup>>,
99 (
google::bigtable::admin::v2::CreateBackupRequest
const& request),
102 MOCK_METHOD(StatusOr<
google::bigtable::admin::v2::Backup>, GetBackup,
103 (
google::bigtable::admin::v2::GetBackupRequest
const& request),
106 MOCK_METHOD(StatusOr<
google::bigtable::admin::v2::Backup>, UpdateBackup,
107 (
google::bigtable::admin::v2::UpdateBackupRequest
const& request),
110 MOCK_METHOD(
Status, DeleteBackup,
111 (
google::bigtable::admin::v2::DeleteBackupRequest
const& request),
114 MOCK_METHOD(StreamRange<
google::bigtable::admin::v2::Backup>, ListBackups,
115 (
google::bigtable::admin::v2::ListBackupsRequest request),
118 MOCK_METHOD(
future<StatusOr<
google::bigtable::admin::v2::Table>>,
120 (
google::bigtable::admin::v2::RestoreTableRequest
const& request),
123 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, GetIamPolicy,
124 (
google::iam::v1::GetIamPolicyRequest
const& request),
127 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, SetIamPolicy,
128 (
google::iam::v1::SetIamPolicyRequest
const& request),
131 MOCK_METHOD(StatusOr<
google::iam::v1::TestIamPermissionsResponse>,
133 (
google::iam::v1::TestIamPermissionsRequest
const& request),
137 future<StatusOr<
google::bigtable::admin::v2::CheckConsistencyResponse>>,
138 AsyncCheckConsistency,
139 (
google::bigtable::admin::v2::CheckConsistencyRequest
const& request),
143GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The BigtableTableAdminConnection object for BigtableTableAdminClient.
Definition: bigtable_table_admin_connection.h:64
A class to mock BigtableTableAdminConnection.
Definition: mock_bigtable_table_admin_connection.h:46
friend friend class future
Definition: mock_bigtable_instance_admin_connection.h:27
Definition: bigtable_instance_admin_client.h:35