Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::dialogflow_cx_mocks::MockDeploymentsConnection Class Reference

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)
 

Detailed Description

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.

See also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Member Function Documentation

◆ GetDeployment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Deployment > google::cloud::dialogflow_cx::DeploymentsConnection::GetDeployment ( google::cloud::dialogflow::cx::v3::GetDeploymentRequest const &  request)
virtualinherited

◆ ListDeployments()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Deployment > google::cloud::dialogflow_cx::DeploymentsConnection::ListDeployments ( google::cloud::dialogflow::cx::v3::ListDeploymentsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/3]

google::cloud::dialogflow_cx_mocks::MockDeploymentsConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/3]

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)   
)

◆ MOCK_METHOD() [3/3]

google::cloud::dialogflow_cx_mocks::MockDeploymentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Deployment >  ,
ListDeployments  ,
(google::cloud::dialogflow::cx::v3::ListDeploymentsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::dialogflow_cx::DeploymentsConnection::options ( )
inlinevirtualinherited