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::MockEnvironmentsConnection Class Reference

A class to mock EnvironmentsConnection. More...

#include <google/cloud/dialogflow_cx/mocks/mock_environments_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Environment >, ListEnvironments,(google::cloud::dialogflow::cx::v3::ListEnvironmentsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Environment >, GetEnvironment,(google::cloud::dialogflow::cx::v3::GetEnvironmentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > >, CreateEnvironment,(google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > >, UpdateEnvironment,(google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteEnvironment,(google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Environment >, LookupEnvironmentHistory,(google::cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::RunContinuousTestResponse > >, RunContinuousTest,(google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::ContinuousTestResult >, ListContinuousTestResults,(google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::DeployFlowResponse > >, DeployFlow,(google::cloud::dialogflow::cx::v3::DeployFlowRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Environment > ListEnvironments (google::cloud::dialogflow::cx::v3::ListEnvironmentsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Environment > GetEnvironment (google::cloud::dialogflow::cx::v3::GetEnvironmentRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > > CreateEnvironment (google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > > UpdateEnvironment (google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const &request)
 
virtual Status DeleteEnvironment (google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Environment > LookupEnvironmentHistory (google::cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::RunContinuousTestResponse > > RunContinuousTest (google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::ContinuousTestResult > ListContinuousTestResults (google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::DeployFlowResponse > > DeployFlow (google::cloud::dialogflow::cx::v3::DeployFlowRequest const &request)
 

Detailed Description

A class to mock EnvironmentsConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type EnvironmentsClient. To do so, construct an object of type EnvironmentsClient 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

◆ CreateEnvironment()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > > google::cloud::dialogflow_cx::EnvironmentsConnection::CreateEnvironment ( google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const &  request)
virtualinherited

◆ DeleteEnvironment()

virtual Status google::cloud::dialogflow_cx::EnvironmentsConnection::DeleteEnvironment ( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const &  request)
virtualinherited

◆ DeployFlow()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::DeployFlowResponse > > google::cloud::dialogflow_cx::EnvironmentsConnection::DeployFlow ( google::cloud::dialogflow::cx::v3::DeployFlowRequest const &  request)
virtualinherited

◆ GetEnvironment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Environment > google::cloud::dialogflow_cx::EnvironmentsConnection::GetEnvironment ( google::cloud::dialogflow::cx::v3::GetEnvironmentRequest const &  request)
virtualinherited

◆ ListContinuousTestResults()

virtual StreamRange< google::cloud::dialogflow::cx::v3::ContinuousTestResult > google::cloud::dialogflow_cx::EnvironmentsConnection::ListContinuousTestResults ( google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest  request)
virtualinherited

◆ ListEnvironments()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Environment > google::cloud::dialogflow_cx::EnvironmentsConnection::ListEnvironments ( google::cloud::dialogflow::cx::v3::ListEnvironmentsRequest  request)
virtualinherited

◆ LookupEnvironmentHistory()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Environment > google::cloud::dialogflow_cx::EnvironmentsConnection::LookupEnvironmentHistory ( google::cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::DeployFlowResponse > >  ,
DeployFlow  ,
(google::cloud::dialogflow::cx::v3::DeployFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > >  ,
CreateEnvironment  ,
(google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > >  ,
UpdateEnvironment  ,
(google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::RunContinuousTestResponse > >  ,
RunContinuousTest  ,
(google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

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

◆ MOCK_METHOD() [6/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( Status  ,
DeleteEnvironment  ,
(google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Environment >  ,
GetEnvironment  ,
(google::cloud::dialogflow::cx::v3::GetEnvironmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::ContinuousTestResult >  ,
ListContinuousTestResults  ,
(google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Environment >  ,
ListEnvironments  ,
(google::cloud::dialogflow::cx::v3::ListEnvironmentsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::dialogflow_cx_mocks::MockEnvironmentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Environment >  ,
LookupEnvironmentHistory  ,
(google::cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest request)  ,
(override)   
)

◆ options()

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

◆ RunContinuousTest()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::RunContinuousTestResponse > > google::cloud::dialogflow_cx::EnvironmentsConnection::RunContinuousTest ( google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const &  request)
virtualinherited

◆ UpdateEnvironment()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > > google::cloud::dialogflow_cx::EnvironmentsConnection::UpdateEnvironment ( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const &  request)
virtualinherited