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

A class to mock IntentsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Intent >, ListIntents,(google::cloud::dialogflow::cx::v3::ListIntentsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Intent >, GetIntent,(google::cloud::dialogflow::cx::v3::GetIntentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Intent >, CreateIntent,(google::cloud::dialogflow::cx::v3::CreateIntentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Intent >, UpdateIntent,(google::cloud::dialogflow::cx::v3::UpdateIntentRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteIntent,(google::cloud::dialogflow::cx::v3::DeleteIntentRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Intent > ListIntents (google::cloud::dialogflow::cx::v3::ListIntentsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Intent > GetIntent (google::cloud::dialogflow::cx::v3::GetIntentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Intent > CreateIntent (google::cloud::dialogflow::cx::v3::CreateIntentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Intent > UpdateIntent (google::cloud::dialogflow::cx::v3::UpdateIntentRequest const &request)
 
virtual Status DeleteIntent (google::cloud::dialogflow::cx::v3::DeleteIntentRequest const &request)
 

Detailed Description

A class to mock IntentsConnection.

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

◆ CreateIntent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Intent > google::cloud::dialogflow_cx::IntentsConnection::CreateIntent ( google::cloud::dialogflow::cx::v3::CreateIntentRequest const &  request)
virtualinherited

◆ DeleteIntent()

virtual Status google::cloud::dialogflow_cx::IntentsConnection::DeleteIntent ( google::cloud::dialogflow::cx::v3::DeleteIntentRequest const &  request)
virtualinherited

◆ GetIntent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Intent > google::cloud::dialogflow_cx::IntentsConnection::GetIntent ( google::cloud::dialogflow::cx::v3::GetIntentRequest const &  request)
virtualinherited

◆ ListIntents()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Intent > google::cloud::dialogflow_cx::IntentsConnection::ListIntents ( google::cloud::dialogflow::cx::v3::ListIntentsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/6]

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

◆ MOCK_METHOD() [2/6]

google::cloud::dialogflow_cx_mocks::MockIntentsConnection::MOCK_METHOD ( Status  ,
DeleteIntent  ,
(google::cloud::dialogflow::cx::v3::DeleteIntentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/6]

google::cloud::dialogflow_cx_mocks::MockIntentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Intent >  ,
CreateIntent  ,
(google::cloud::dialogflow::cx::v3::CreateIntentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/6]

google::cloud::dialogflow_cx_mocks::MockIntentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Intent >  ,
GetIntent  ,
(google::cloud::dialogflow::cx::v3::GetIntentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/6]

google::cloud::dialogflow_cx_mocks::MockIntentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Intent >  ,
UpdateIntent  ,
(google::cloud::dialogflow::cx::v3::UpdateIntentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/6]

google::cloud::dialogflow_cx_mocks::MockIntentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Intent >  ,
ListIntents  ,
(google::cloud::dialogflow::cx::v3::ListIntentsRequest request)  ,
(override)   
)

◆ options()

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

◆ UpdateIntent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Intent > google::cloud::dialogflow_cx::IntentsConnection::UpdateIntent ( google::cloud::dialogflow::cx::v3::UpdateIntentRequest const &  request)
virtualinherited