Google Cloud BigQuery C++ Client 2.11.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
mock_analytics_hub_connection.h
1// Copyright 2022 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/analyticshub/v1/analyticshub.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_ANALYTICSHUB_V1_MOCKS_MOCK_ANALYTICS_HUB_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_ANALYTICSHUB_V1_MOCKS_MOCK_ANALYTICS_HUB_CONNECTION_H
21
22#include "google/cloud/bigquery/analyticshub/v1/analytics_hub_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 `AnalyticsHubServiceConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `AnalyticsHubServiceClient`. To do
35 * so, construct an object of type `AnalyticsHubServiceClient` with an instance
36 * of this class. Then use the Google Test framework functions to program the
37 * behavior 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]: @googleapis_dev_link{bigquery,bigquery-read-mock.html}
44 */
47 public:
48 MOCK_METHOD(Options, options, (), (override));
49
50 MOCK_METHOD(
51 StreamRange<google::cloud::bigquery::analyticshub::v1::DataExchange>,
52 ListDataExchanges,
53 (google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest
54 request),
55 (override));
56
57 MOCK_METHOD(
58 StreamRange<google::cloud::bigquery::analyticshub::v1::DataExchange>,
59 ListOrgDataExchanges,
60 (google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest
61 request),
62 (override));
63
64 MOCK_METHOD(
65 StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange>,
66 GetDataExchange,
67 (google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const&
68 request),
69 (override));
70
71 MOCK_METHOD(StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange>,
72 CreateDataExchange,
73 (google::cloud::bigquery::analyticshub::v1::
74 CreateDataExchangeRequest const& request),
75 (override));
76
77 MOCK_METHOD(StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange>,
78 UpdateDataExchange,
79 (google::cloud::bigquery::analyticshub::v1::
80 UpdateDataExchangeRequest const& request),
81 (override));
82
83 MOCK_METHOD(Status, DeleteDataExchange,
84 (google::cloud::bigquery::analyticshub::v1::
85 DeleteDataExchangeRequest const& request),
86 (override));
87
88 MOCK_METHOD(
89 StreamRange<google::cloud::bigquery::analyticshub::v1::Listing>,
90 ListListings,
91 (google::cloud::bigquery::analyticshub::v1::ListListingsRequest request),
92 (override));
93
94 MOCK_METHOD(
95 StatusOr<google::cloud::bigquery::analyticshub::v1::Listing>, GetListing,
96 (google::cloud::bigquery::analyticshub::v1::GetListingRequest const&
97 request),
98 (override));
99
100 MOCK_METHOD(
101 StatusOr<google::cloud::bigquery::analyticshub::v1::Listing>,
102 CreateListing,
103 (google::cloud::bigquery::analyticshub::v1::CreateListingRequest const&
104 request),
105 (override));
106
107 MOCK_METHOD(
108 StatusOr<google::cloud::bigquery::analyticshub::v1::Listing>,
109 UpdateListing,
110 (google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const&
111 request),
112 (override));
113
114 MOCK_METHOD(
115 Status, DeleteListing,
116 (google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const&
117 request),
118 (override));
119
120 MOCK_METHOD(
121 StatusOr<
122 google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse>,
123 SubscribeListing,
124 (google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const&
125 request),
126 (override));
127
128 MOCK_METHOD(StatusOr<google::iam::v1::Policy>, GetIamPolicy,
129 (google::iam::v1::GetIamPolicyRequest const& request),
130 (override));
131
132 MOCK_METHOD(StatusOr<google::iam::v1::Policy>, SetIamPolicy,
133 (google::iam::v1::SetIamPolicyRequest const& request),
134 (override));
135
136 MOCK_METHOD(StatusOr<google::iam::v1::TestIamPermissionsResponse>,
137 TestIamPermissions,
138 (google::iam::v1::TestIamPermissionsRequest const& request),
139 (override));
140};
141
142GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
143} // namespace bigquery_analyticshub_v1_mocks
144} // namespace cloud
145} // namespace google
146
147#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_ANALYTICSHUB_V1_MOCKS_MOCK_ANALYTICS_HUB_CONNECTION_H
The AnalyticsHubServiceConnection object for AnalyticsHubServiceClient.
Definition: analytics_hub_connection.h:62
A class to mock AnalyticsHubServiceConnection.
Definition: mock_analytics_hub_connection.h:46
Definition: mock_analytics_hub_connection.h:27
Definition: analytics_hub_client.h:32
Definition: analytics_hub_client.h:30