|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::KnowledgeBase >, ListKnowledgeBases,(google::cloud::dialogflow::v2::ListKnowledgeBasesRequest request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >, GetKnowledgeBase,(google::cloud::dialogflow::v2::GetKnowledgeBaseRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >, CreateKnowledgeBase,(google::cloud::dialogflow::v2::CreateKnowledgeBaseRequest const &request),(override)) |
|
| MOCK_METHOD (Status, DeleteKnowledgeBase,(google::cloud::dialogflow::v2::DeleteKnowledgeBaseRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >, UpdateKnowledgeBase,(google::cloud::dialogflow::v2::UpdateKnowledgeBaseRequest const &request),(override)) |
|
virtual Options | options () |
|
virtual StreamRange< google::cloud::dialogflow::v2::KnowledgeBase > | ListKnowledgeBases (google::cloud::dialogflow::v2::ListKnowledgeBasesRequest request) |
|
virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > | GetKnowledgeBase (google::cloud::dialogflow::v2::GetKnowledgeBaseRequest const &request) |
|
virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > | CreateKnowledgeBase (google::cloud::dialogflow::v2::CreateKnowledgeBaseRequest const &request) |
|
virtual Status | DeleteKnowledgeBase (google::cloud::dialogflow::v2::DeleteKnowledgeBaseRequest const &request) |
|
virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > | UpdateKnowledgeBase (google::cloud::dialogflow::v2::UpdateKnowledgeBaseRequest const &request) |
|
A class to mock KnowledgeBasesConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type KnowledgeBasesClient
. To do so, construct an object of type KnowledgeBasesClient
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
.