Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
|
A class to mock DeploymentsConnection
.
More...
#include <google/cloud/dialogflow_cx/mocks/mock_deployments_connection.h>
Public Member Functions | |
MOCK_METHOD (Options, options,(),(override)) | |
MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Deployment >, ListDeployments,(google::cloud::dialogflow::cx::v3::ListDeploymentsRequest request),(override)) | |
MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Deployment >, GetDeployment,(google::cloud::dialogflow::cx::v3::GetDeploymentRequest const &request),(override)) | |
virtual Options | options () |
virtual StreamRange< google::cloud::dialogflow::cx::v3::Deployment > | ListDeployments (google::cloud::dialogflow::cx::v3::ListDeploymentsRequest request) |
virtual StatusOr< google::cloud::dialogflow::cx::v3::Deployment > | GetDeployment (google::cloud::dialogflow::cx::v3::GetDeploymentRequest const &request) |
A class to mock DeploymentsConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type DeploymentsClient
. To do so, construct an object of type DeploymentsClient
with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.
*Client
and *Connection
.
|
virtualinherited |
|
virtualinherited |
google::cloud::dialogflow_cx_mocks::MockDeploymentsConnection::MOCK_METHOD | ( | Options | , |
options | , | ||
() | , | ||
(override) | |||
) |
google::cloud::dialogflow_cx_mocks::MockDeploymentsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::cx::v3::Deployment > | , |
GetDeployment | , | ||
(google::cloud::dialogflow::cx::v3::GetDeploymentRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_cx_mocks::MockDeploymentsConnection::MOCK_METHOD | ( | StreamRange< google::cloud::dialogflow::cx::v3::Deployment > | , |
ListDeployments | , | ||
(google::cloud::dialogflow::cx::v3::ListDeploymentsRequest request) | , | ||
(override) | |||
) |
|
inlinevirtualinherited |