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

A class to mock WebhooksConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Webhook >, ListWebhooks,(google::cloud::dialogflow::cx::v3::ListWebhooksRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Webhook >, GetWebhook,(google::cloud::dialogflow::cx::v3::GetWebhookRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Webhook >, CreateWebhook,(google::cloud::dialogflow::cx::v3::CreateWebhookRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Webhook >, UpdateWebhook,(google::cloud::dialogflow::cx::v3::UpdateWebhookRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteWebhook,(google::cloud::dialogflow::cx::v3::DeleteWebhookRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Webhook > ListWebhooks (google::cloud::dialogflow::cx::v3::ListWebhooksRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > GetWebhook (google::cloud::dialogflow::cx::v3::GetWebhookRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > CreateWebhook (google::cloud::dialogflow::cx::v3::CreateWebhookRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > UpdateWebhook (google::cloud::dialogflow::cx::v3::UpdateWebhookRequest const &request)
 
virtual Status DeleteWebhook (google::cloud::dialogflow::cx::v3::DeleteWebhookRequest const &request)
 

Detailed Description

A class to mock WebhooksConnection.

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

◆ CreateWebhook()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > google::cloud::dialogflow_cx::WebhooksConnection::CreateWebhook ( google::cloud::dialogflow::cx::v3::CreateWebhookRequest const &  request)
virtualinherited

◆ DeleteWebhook()

virtual Status google::cloud::dialogflow_cx::WebhooksConnection::DeleteWebhook ( google::cloud::dialogflow::cx::v3::DeleteWebhookRequest const &  request)
virtualinherited

◆ GetWebhook()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > google::cloud::dialogflow_cx::WebhooksConnection::GetWebhook ( google::cloud::dialogflow::cx::v3::GetWebhookRequest const &  request)
virtualinherited

◆ ListWebhooks()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Webhook > google::cloud::dialogflow_cx::WebhooksConnection::ListWebhooks ( google::cloud::dialogflow::cx::v3::ListWebhooksRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/6]

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

◆ MOCK_METHOD() [2/6]

google::cloud::dialogflow_cx_mocks::MockWebhooksConnection::MOCK_METHOD ( Status  ,
DeleteWebhook  ,
(google::cloud::dialogflow::cx::v3::DeleteWebhookRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/6]

google::cloud::dialogflow_cx_mocks::MockWebhooksConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Webhook >  ,
CreateWebhook  ,
(google::cloud::dialogflow::cx::v3::CreateWebhookRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/6]

google::cloud::dialogflow_cx_mocks::MockWebhooksConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Webhook >  ,
GetWebhook  ,
(google::cloud::dialogflow::cx::v3::GetWebhookRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/6]

google::cloud::dialogflow_cx_mocks::MockWebhooksConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Webhook >  ,
UpdateWebhook  ,
(google::cloud::dialogflow::cx::v3::UpdateWebhookRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/6]

google::cloud::dialogflow_cx_mocks::MockWebhooksConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Webhook >  ,
ListWebhooks  ,
(google::cloud::dialogflow::cx::v3::ListWebhooksRequest request)  ,
(override)   
)

◆ options()

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

◆ UpdateWebhook()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > google::cloud::dialogflow_cx::WebhooksConnection::UpdateWebhook ( google::cloud::dialogflow::cx::v3::UpdateWebhookRequest const &  request)
virtualinherited