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

A class to mock ChangelogsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Changelog >, ListChangelogs,(google::cloud::dialogflow::cx::v3::ListChangelogsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Changelog >, GetChangelog,(google::cloud::dialogflow::cx::v3::GetChangelogRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Changelog > ListChangelogs (google::cloud::dialogflow::cx::v3::ListChangelogsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Changelog > GetChangelog (google::cloud::dialogflow::cx::v3::GetChangelogRequest const &request)
 

Detailed Description

A class to mock ChangelogsConnection.

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

◆ GetChangelog()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Changelog > google::cloud::dialogflow_cx::ChangelogsConnection::GetChangelog ( google::cloud::dialogflow::cx::v3::GetChangelogRequest const &  request)
virtualinherited

◆ ListChangelogs()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Changelog > google::cloud::dialogflow_cx::ChangelogsConnection::ListChangelogs ( google::cloud::dialogflow::cx::v3::ListChangelogsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/3]

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

◆ MOCK_METHOD() [2/3]

google::cloud::dialogflow_cx_mocks::MockChangelogsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Changelog >  ,
GetChangelog  ,
(google::cloud::dialogflow::cx::v3::GetChangelogRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/3]

google::cloud::dialogflow_cx_mocks::MockChangelogsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Changelog >  ,
ListChangelogs  ,
(google::cloud::dialogflow::cx::v3::ListChangelogsRequest request)  ,
(override)   
)

◆ options()

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