Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
mock_topic_admin_connection.h
1// Copyright 2020 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#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_MOCKS_MOCK_TOPIC_ADMIN_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_MOCKS_MOCK_TOPIC_ADMIN_CONNECTION_H
17
18#include "google/cloud/pubsub/topic_admin_connection.h"
19#include <gmock/gmock.h>
20
21namespace google {
22namespace cloud {
23namespace pubsub_mocks {
24GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
25
26/**
27 * A googlemock-based mock for [pubsub::TopicAdminConnection][mocked-link]
28 *
29 * [mocked-link]: @ref google::cloud::pubsub::TopicAdminConnection
30 */
32 public:
33 MOCK_METHOD(StatusOr<google::pubsub::v1::Topic>, CreateTopic,
35
36 MOCK_METHOD(StatusOr<google::pubsub::v1::Topic>, GetTopic, (GetTopicParams),
37 (override));
38
39 MOCK_METHOD(StatusOr<google::pubsub::v1::Topic>, UpdateTopic,
41
42 MOCK_METHOD(pubsub::ListTopicsRange, ListTopics, (ListTopicsParams),
43 (override));
44
45 MOCK_METHOD(Status, DeleteTopic, (DeleteTopicParams), (override));
46
47 MOCK_METHOD(StatusOr<google::pubsub::v1::DetachSubscriptionResponse>,
48 DetachSubscription, (DetachSubscriptionParams), (override));
49
50 MOCK_METHOD(pubsub::ListTopicSubscriptionsRange, ListTopicSubscriptions,
52
53 MOCK_METHOD(pubsub::ListTopicSnapshotsRange, ListTopicSnapshots,
55};
56
57GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
58} // namespace pubsub_mocks
59} // namespace cloud
60} // namespace google
61
62#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_MOCKS_MOCK_TOPIC_ADMIN_CONNECTION_H
A connection to Cloud Pub/Sub for topic-related administrative operations.
Definition: topic_admin_connection.h:91
A googlemock-based mock for pubsub::TopicAdminConnection.
Definition: mock_topic_admin_connection.h:31
A namespace for googlemock-based Cloud Pub/Sub C++ client mocks.
Definition: mock_ack_handler.h:25
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
The namespace Google Cloud Platform C++ client libraries.
Wrap the arguments for CreateTopic()
Definition: topic_admin_connection.h:96
Wrap the arguments for DeleteTopic()
Definition: topic_admin_connection.h:116
Wrap the arguments for DetachSubscription()
Definition: topic_admin_connection.h:121
Wrap the arguments for GetTopic()
Definition: topic_admin_connection.h:101
Wrap the arguments for ListTopicSnapshots()
Definition: topic_admin_connection.h:131
Wrap the arguments for ListTopicSubscriptions()
Definition: topic_admin_connection.h:126
Wrap the arguments for ListTopics()
Definition: topic_admin_connection.h:111
Wrap the arguments for UpdateTopic()
Definition: topic_admin_connection.h:106