Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
mock_environments_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/dialogflow/cx/v3/environment.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_ENVIRONMENTS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_ENVIRONMENTS_CONNECTION_H
21
22#include "google/cloud/dialogflow_cx/environments_connection.h"
23#include <gmock/gmock.h>
24
25namespace google {
26namespace cloud {
27namespace dialogflow_cx_mocks {
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30/**
31 * A class to mock `EnvironmentsConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `EnvironmentsClient`. To do so,
35 * construct an object of type `EnvironmentsClient` 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(
51 StreamRange<google::cloud::dialogflow::cx::v3::Environment>,
52 ListEnvironments,
53 (google::cloud::dialogflow::cx::v3::ListEnvironmentsRequest request),
54 (override));
55
56 MOCK_METHOD(
57 StatusOr<google::cloud::dialogflow::cx::v3::Environment>, GetEnvironment,
58 (google::cloud::dialogflow::cx::v3::GetEnvironmentRequest const& request),
59 (override));
60
61 MOCK_METHOD(
62 future<StatusOr<google::cloud::dialogflow::cx::v3::Environment>>,
63 CreateEnvironment,
64 (google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const&
65 request),
66 (override));
67
68 MOCK_METHOD(
69 future<StatusOr<google::cloud::dialogflow::cx::v3::Environment>>,
70 UpdateEnvironment,
71 (google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const&
72 request),
73 (override));
74
75 MOCK_METHOD(
76 Status, DeleteEnvironment,
77 (google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const&
78 request),
79 (override));
80
81 MOCK_METHOD(
82 StreamRange<google::cloud::dialogflow::cx::v3::Environment>,
83 LookupEnvironmentHistory,
84 (google::cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest
85 request),
86 (override));
87
88 MOCK_METHOD(
89 future<StatusOr<
90 google::cloud::dialogflow::cx::v3::RunContinuousTestResponse>>,
91 RunContinuousTest,
92 (google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const&
93 request),
94 (override));
95
96 MOCK_METHOD(
97 StreamRange<google::cloud::dialogflow::cx::v3::ContinuousTestResult>,
98 ListContinuousTestResults,
99 (google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest
100 request),
101 (override));
102
103 MOCK_METHOD(
104 future<StatusOr<google::cloud::dialogflow::cx::v3::DeployFlowResponse>>,
105 DeployFlow,
106 (google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request),
107 (override));
108};
109
110GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
111} // namespace dialogflow_cx_mocks
112} // namespace cloud
113} // namespace google
114
115#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_ENVIRONMENTS_CONNECTION_H
The EnvironmentsConnection object for EnvironmentsClient.
Definition: environments_connection.h:66
A class to mock EnvironmentsConnection.
Definition: mock_environments_connection.h:46
friend friend class future
Definition: mock_agents_connection.h:27
Definition: agents_client.h:33