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_es_mocks::MockFulfillmentsConnection Class Reference

A class to mock FulfillmentsConnection. More...

#include <google/cloud/dialogflow_es/mocks/mock_fulfillments_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Fulfillment >, GetFulfillment,(google::cloud::dialogflow::v2::GetFulfillmentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Fulfillment >, UpdateFulfillment,(google::cloud::dialogflow::v2::UpdateFulfillmentRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::dialogflow::v2::Fulfillment > GetFulfillment (google::cloud::dialogflow::v2::GetFulfillmentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::Fulfillment > UpdateFulfillment (google::cloud::dialogflow::v2::UpdateFulfillmentRequest const &request)
 

Detailed Description

A class to mock FulfillmentsConnection.

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

◆ GetFulfillment()

virtual StatusOr< google::cloud::dialogflow::v2::Fulfillment > google::cloud::dialogflow_es::FulfillmentsConnection::GetFulfillment ( google::cloud::dialogflow::v2::GetFulfillmentRequest const &  request)
virtualinherited

◆ MOCK_METHOD() [1/3]

google::cloud::dialogflow_es_mocks::MockFulfillmentsConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/3]

google::cloud::dialogflow_es_mocks::MockFulfillmentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Fulfillment >  ,
GetFulfillment  ,
(google::cloud::dialogflow::v2::GetFulfillmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/3]

google::cloud::dialogflow_es_mocks::MockFulfillmentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Fulfillment >  ,
UpdateFulfillment  ,
(google::cloud::dialogflow::v2::UpdateFulfillmentRequest const &request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::dialogflow_es::FulfillmentsConnection::options ( )
inlinevirtualinherited

◆ UpdateFulfillment()

virtual StatusOr< google::cloud::dialogflow::v2::Fulfillment > google::cloud::dialogflow_es::FulfillmentsConnection::UpdateFulfillment ( google::cloud::dialogflow::v2::UpdateFulfillmentRequest const &  request)
virtualinherited