|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Agent >, GetAgent,(google::cloud::dialogflow::v2::GetAgentRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Agent >, SetAgent,(google::cloud::dialogflow::v2::SetAgentRequest const &request),(override)) |
|
| MOCK_METHOD (Status, DeleteAgent,(google::cloud::dialogflow::v2::DeleteAgentRequest const &request),(override)) |
|
| MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::Agent >, SearchAgents,(google::cloud::dialogflow::v2::SearchAgentsRequest request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, TrainAgent,(google::cloud::dialogflow::v2::TrainAgentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > >, ExportAgent,(google::cloud::dialogflow::v2::ExportAgentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, ImportAgent,(google::cloud::dialogflow::v2::ImportAgentRequest const &request),(override)) |
|
| MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, RestoreAgent,(google::cloud::dialogflow::v2::RestoreAgentRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ValidationResult >, GetValidationResult,(google::cloud::dialogflow::v2::GetValidationResultRequest const &request),(override)) |
|
virtual Options | options () |
|
virtual StatusOr< google::cloud::dialogflow::v2::Agent > | GetAgent (google::cloud::dialogflow::v2::GetAgentRequest const &request) |
|
virtual StatusOr< google::cloud::dialogflow::v2::Agent > | SetAgent (google::cloud::dialogflow::v2::SetAgentRequest const &request) |
|
virtual Status | DeleteAgent (google::cloud::dialogflow::v2::DeleteAgentRequest const &request) |
|
virtual StreamRange< google::cloud::dialogflow::v2::Agent > | SearchAgents (google::cloud::dialogflow::v2::SearchAgentsRequest request) |
|
virtual future< StatusOr< google::protobuf::Struct > > | TrainAgent (google::cloud::dialogflow::v2::TrainAgentRequest const &request) |
|
virtual future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > > | ExportAgent (google::cloud::dialogflow::v2::ExportAgentRequest const &request) |
|
virtual future< StatusOr< google::protobuf::Struct > > | ImportAgent (google::cloud::dialogflow::v2::ImportAgentRequest const &request) |
|
virtual future< StatusOr< google::protobuf::Struct > > | RestoreAgent (google::cloud::dialogflow::v2::RestoreAgentRequest const &request) |
|
virtual StatusOr< google::cloud::dialogflow::v2::ValidationResult > | GetValidationResult (google::cloud::dialogflow::v2::GetValidationResultRequest const &request) |
|
A class to mock AgentsConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type AgentsClient
. To do so, construct an object of type AgentsClient
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
.