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

A class to mock ExperimentsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Experiment >, ListExperiments,(google::cloud::dialogflow::cx::v3::ListExperimentsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Experiment >, GetExperiment,(google::cloud::dialogflow::cx::v3::GetExperimentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Experiment >, CreateExperiment,(google::cloud::dialogflow::cx::v3::CreateExperimentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Experiment >, UpdateExperiment,(google::cloud::dialogflow::cx::v3::UpdateExperimentRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteExperiment,(google::cloud::dialogflow::cx::v3::DeleteExperimentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Experiment >, StartExperiment,(google::cloud::dialogflow::cx::v3::StartExperimentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Experiment >, StopExperiment,(google::cloud::dialogflow::cx::v3::StopExperimentRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Experiment > ListExperiments (google::cloud::dialogflow::cx::v3::ListExperimentsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > GetExperiment (google::cloud::dialogflow::cx::v3::GetExperimentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > CreateExperiment (google::cloud::dialogflow::cx::v3::CreateExperimentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > UpdateExperiment (google::cloud::dialogflow::cx::v3::UpdateExperimentRequest const &request)
 
virtual Status DeleteExperiment (google::cloud::dialogflow::cx::v3::DeleteExperimentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > StartExperiment (google::cloud::dialogflow::cx::v3::StartExperimentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > StopExperiment (google::cloud::dialogflow::cx::v3::StopExperimentRequest const &request)
 

Detailed Description

A class to mock ExperimentsConnection.

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

◆ CreateExperiment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > google::cloud::dialogflow_cx::ExperimentsConnection::CreateExperiment ( google::cloud::dialogflow::cx::v3::CreateExperimentRequest const &  request)
virtualinherited

◆ DeleteExperiment()

virtual Status google::cloud::dialogflow_cx::ExperimentsConnection::DeleteExperiment ( google::cloud::dialogflow::cx::v3::DeleteExperimentRequest const &  request)
virtualinherited

◆ GetExperiment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > google::cloud::dialogflow_cx::ExperimentsConnection::GetExperiment ( google::cloud::dialogflow::cx::v3::GetExperimentRequest const &  request)
virtualinherited

◆ ListExperiments()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Experiment > google::cloud::dialogflow_cx::ExperimentsConnection::ListExperiments ( google::cloud::dialogflow::cx::v3::ListExperimentsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/8]

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

◆ MOCK_METHOD() [2/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( Status  ,
DeleteExperiment  ,
(google::cloud::dialogflow::cx::v3::DeleteExperimentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Experiment >  ,
CreateExperiment  ,
(google::cloud::dialogflow::cx::v3::CreateExperimentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Experiment >  ,
GetExperiment  ,
(google::cloud::dialogflow::cx::v3::GetExperimentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Experiment >  ,
StartExperiment  ,
(google::cloud::dialogflow::cx::v3::StartExperimentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Experiment >  ,
StopExperiment  ,
(google::cloud::dialogflow::cx::v3::StopExperimentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Experiment >  ,
UpdateExperiment  ,
(google::cloud::dialogflow::cx::v3::UpdateExperimentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/8]

google::cloud::dialogflow_cx_mocks::MockExperimentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Experiment >  ,
ListExperiments  ,
(google::cloud::dialogflow::cx::v3::ListExperimentsRequest request)  ,
(override)   
)

◆ options()

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

◆ StartExperiment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > google::cloud::dialogflow_cx::ExperimentsConnection::StartExperiment ( google::cloud::dialogflow::cx::v3::StartExperimentRequest const &  request)
virtualinherited

◆ StopExperiment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > google::cloud::dialogflow_cx::ExperimentsConnection::StopExperiment ( google::cloud::dialogflow::cx::v3::StopExperimentRequest const &  request)
virtualinherited

◆ UpdateExperiment()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Experiment > google::cloud::dialogflow_cx::ExperimentsConnection::UpdateExperiment ( google::cloud::dialogflow::cx::v3::UpdateExperimentRequest const &  request)
virtualinherited