Google Cloud BigQuery C++ Client 2.13.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
mock_metastore_connection.h
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated by the Codegen C++ plugin.
16// If you make any local changes, they will be lost.
17// source: google/cloud/bigquery/biglake/v1/metastore.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_BIGLAKE_V1_MOCKS_MOCK_METASTORE_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_BIGLAKE_V1_MOCKS_MOCK_METASTORE_CONNECTION_H
21
22#include "google/cloud/bigquery/biglake/v1/metastore_connection.h"
23#include <gmock/gmock.h>
24
25namespace google {
26namespace cloud {
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30/**
31 * A class to mock `MetastoreServiceConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `MetastoreServiceClient`. To do so,
35 * construct an object of type `MetastoreServiceClient` with an instance of this
36 * class. Then use the Google Test framework functions to program the behavior
37 * of this mock.
38 *
39 * @see [This example][bq-mock] for how to test your application with GoogleTest.
40 * While the example showcases types from the BigQuery library, the underlying
41 * principles apply for any pair of `*Client` and `*Connection`.
42 *
43 * [bq-mock]: @cloud_cpp_docs_link{bigquery,bigquery-read-mock}
44 */
47 public:
48 MOCK_METHOD(Options, options, (), (override));
49
50 MOCK_METHOD(StatusOr<google::cloud::bigquery::biglake::v1::Catalog>,
51 CreateCatalog,
52 (google::cloud::bigquery::biglake::v1::CreateCatalogRequest const&
53 request),
54 (override));
55
56 MOCK_METHOD(StatusOr<google::cloud::bigquery::biglake::v1::Catalog>,
57 DeleteCatalog,
58 (google::cloud::bigquery::biglake::v1::DeleteCatalogRequest const&
59 request),
60 (override));
61
62 MOCK_METHOD(
63 StatusOr<google::cloud::bigquery::biglake::v1::Catalog>, GetCatalog,
64 (google::cloud::bigquery::biglake::v1::GetCatalogRequest const& request),
65 (override));
66
67 MOCK_METHOD(
68 StreamRange<google::cloud::bigquery::biglake::v1::Catalog>, ListCatalogs,
69 (google::cloud::bigquery::biglake::v1::ListCatalogsRequest request),
70 (override));
71
72 MOCK_METHOD(
73 StatusOr<google::cloud::bigquery::biglake::v1::Database>, CreateDatabase,
74 (google::cloud::bigquery::biglake::v1::CreateDatabaseRequest const&
75 request),
76 (override));
77
78 MOCK_METHOD(
79 StatusOr<google::cloud::bigquery::biglake::v1::Database>, DeleteDatabase,
80 (google::cloud::bigquery::biglake::v1::DeleteDatabaseRequest const&
81 request),
82 (override));
83
84 MOCK_METHOD(
85 StatusOr<google::cloud::bigquery::biglake::v1::Database>, UpdateDatabase,
86 (google::cloud::bigquery::biglake::v1::UpdateDatabaseRequest const&
87 request),
88 (override));
89
90 MOCK_METHOD(
91 StatusOr<google::cloud::bigquery::biglake::v1::Database>, GetDatabase,
92 (google::cloud::bigquery::biglake::v1::GetDatabaseRequest const& request),
93 (override));
94
95 MOCK_METHOD(
96 StreamRange<google::cloud::bigquery::biglake::v1::Database>,
97 ListDatabases,
98 (google::cloud::bigquery::biglake::v1::ListDatabasesRequest request),
99 (override));
100
101 MOCK_METHOD(
102 StatusOr<google::cloud::bigquery::biglake::v1::Table>, CreateTable,
103 (google::cloud::bigquery::biglake::v1::CreateTableRequest const& request),
104 (override));
105
106 MOCK_METHOD(
107 StatusOr<google::cloud::bigquery::biglake::v1::Table>, DeleteTable,
108 (google::cloud::bigquery::biglake::v1::DeleteTableRequest const& request),
109 (override));
110
111 MOCK_METHOD(
112 StatusOr<google::cloud::bigquery::biglake::v1::Table>, UpdateTable,
113 (google::cloud::bigquery::biglake::v1::UpdateTableRequest const& request),
114 (override));
115
116 MOCK_METHOD(
117 StatusOr<google::cloud::bigquery::biglake::v1::Table>, RenameTable,
118 (google::cloud::bigquery::biglake::v1::RenameTableRequest const& request),
119 (override));
120
121 MOCK_METHOD(
122 StatusOr<google::cloud::bigquery::biglake::v1::Table>, GetTable,
123 (google::cloud::bigquery::biglake::v1::GetTableRequest const& request),
124 (override));
125
126 MOCK_METHOD(StreamRange<google::cloud::bigquery::biglake::v1::Table>,
127 ListTables,
128 (google::cloud::bigquery::biglake::v1::ListTablesRequest request),
129 (override));
130};
131
132GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
133} // namespace bigquery_biglake_v1_mocks
134} // namespace cloud
135} // namespace google
136
137#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_BIGLAKE_V1_MOCKS_MOCK_METASTORE_CONNECTION_H
The MetastoreServiceConnection object for MetastoreServiceClient.
Definition: metastore_connection.h:61
A class to mock MetastoreServiceConnection.
Definition: mock_metastore_connection.h:46
Definition: mock_metastore_connection.h:27
Definition: metastore_client.h:32
Definition: analytics_hub_client.h:30