|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::Document >, ListDocuments,(google::cloud::dialogflow::v2::ListDocumentsRequest request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Document >, GetDocument,(google::cloud::dialogflow::v2::GetDocumentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::Document > >, CreateDocument,(google::cloud::dialogflow::v2::CreateDocumentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ImportDocumentsResponse > >, ImportDocuments,(google::cloud::dialogflow::v2::ImportDocumentsRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::KnowledgeOperationMetadata > >, DeleteDocument,(google::cloud::dialogflow::v2::DeleteDocumentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::Document > >, UpdateDocument,(google::cloud::dialogflow::v2::UpdateDocumentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::Document > >, ReloadDocument,(google::cloud::dialogflow::v2::ReloadDocumentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::Document > >, ExportDocument,(google::cloud::dialogflow::v2::ExportDocumentRequest const &request),(override)) |
|
virtual Options | options () |
|
virtual StreamRange< google::cloud::dialogflow::v2::Document > | ListDocuments (google::cloud::dialogflow::v2::ListDocumentsRequest request) |
|
virtual StatusOr< google::cloud::dialogflow::v2::Document > | GetDocument (google::cloud::dialogflow::v2::GetDocumentRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::Document > > | CreateDocument (google::cloud::dialogflow::v2::CreateDocumentRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::ImportDocumentsResponse > > | ImportDocuments (google::cloud::dialogflow::v2::ImportDocumentsRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::KnowledgeOperationMetadata > > | DeleteDocument (google::cloud::dialogflow::v2::DeleteDocumentRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::Document > > | UpdateDocument (google::cloud::dialogflow::v2::UpdateDocumentRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::Document > > | ReloadDocument (google::cloud::dialogflow::v2::ReloadDocumentRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::Document > > | ExportDocument (google::cloud::dialogflow::v2::ExportDocumentRequest const &request) |
|
A class to mock DocumentsConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type DocumentsClient
. To do so, construct an object of type DocumentsClient
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
.