Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
mock_experiments_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/experiment.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_EXPERIMENTS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_EXPERIMENTS_CONNECTION_H
21
22#include "google/cloud/dialogflow_cx/experiments_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 `ExperimentsConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `ExperimentsClient`. To do so,
35 * construct an object of type `ExperimentsClient` 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 */
46 public:
47 MOCK_METHOD(Options, options, (), (override));
48
49 MOCK_METHOD(
50 StreamRange<google::cloud::dialogflow::cx::v3::Experiment>,
51 ListExperiments,
52 (google::cloud::dialogflow::cx::v3::ListExperimentsRequest request),
53 (override));
54
55 MOCK_METHOD(
56 StatusOr<google::cloud::dialogflow::cx::v3::Experiment>, GetExperiment,
57 (google::cloud::dialogflow::cx::v3::GetExperimentRequest const& request),
58 (override));
59
60 MOCK_METHOD(StatusOr<google::cloud::dialogflow::cx::v3::Experiment>,
61 CreateExperiment,
62 (google::cloud::dialogflow::cx::v3::CreateExperimentRequest const&
63 request),
64 (override));
65
66 MOCK_METHOD(StatusOr<google::cloud::dialogflow::cx::v3::Experiment>,
67 UpdateExperiment,
68 (google::cloud::dialogflow::cx::v3::UpdateExperimentRequest const&
69 request),
70 (override));
71
72 MOCK_METHOD(Status, DeleteExperiment,
73 (google::cloud::dialogflow::cx::v3::DeleteExperimentRequest const&
74 request),
75 (override));
76
77 MOCK_METHOD(StatusOr<google::cloud::dialogflow::cx::v3::Experiment>,
78 StartExperiment,
79 (google::cloud::dialogflow::cx::v3::StartExperimentRequest const&
80 request),
81 (override));
82
83 MOCK_METHOD(
84 StatusOr<google::cloud::dialogflow::cx::v3::Experiment>, StopExperiment,
85 (google::cloud::dialogflow::cx::v3::StopExperimentRequest const& request),
86 (override));
87};
88
89GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
90} // namespace dialogflow_cx_mocks
91} // namespace cloud
92} // namespace google
93
94#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_EXPERIMENTS_CONNECTION_H
The ExperimentsConnection object for ExperimentsClient.
Definition: experiments_connection.h:61
A class to mock ExperimentsConnection.
Definition: mock_experiments_connection.h:45
Definition: mock_agents_connection.h:27
Definition: agents_client.h:33