A class to mock ContactCenterInsightsConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type ContactCenterInsightsClient
. To do so, construct an object of type ContactCenterInsightsClient
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
.
Functions
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Returns |
Type |
Description |
Options |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CreateConversationRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Conversation > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UploadConversationRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::Conversation > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UpdateConversationRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Conversation > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetConversationRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Conversation > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ListConversationsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::contactcenterinsights::v1::Conversation > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeleteConversationRequest const &
|
Returns |
Type |
Description |
Status |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::Analysis > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetAnalysisRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Analysis > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ListAnalysesRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::contactcenterinsights::v1::Analysis > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeleteAnalysisRequest const &
|
Returns |
Type |
Description |
Status |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::BulkAnalyzeConversationsResponse > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::IngestConversationsRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::IngestConversationsResponse > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::ExportInsightsDataResponse > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::IssueModel > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::IssueModel > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetIssueModelRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::IssueModel > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ListIssueModelsRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::ListIssueModelsResponse > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::DeleteIssueModelMetadata > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::DeployIssueModelResponse > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::contactcenterinsights::v1::UndeployIssueModelResponse > > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetIssueRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Issue > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ListIssuesRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::ListIssuesResponse > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UpdateIssueRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Issue > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeleteIssueRequest const &
|
Returns |
Type |
Description |
Status |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::CalculateIssueModelStatsResponse > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CreatePhraseMatcherRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetPhraseMatcherRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ListPhraseMatchersRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::contactcenterinsights::v1::PhraseMatcher > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeletePhraseMatcherRequest const &
|
Returns |
Type |
Description |
Status |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UpdatePhraseMatcherRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::PhraseMatcher > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CalculateStatsRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::CalculateStatsResponse > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetSettingsRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Settings > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UpdateSettingsRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::Settings > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::CreateViewRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::View > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::GetViewRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::View > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::ListViewsRequest
|
Returns |
Type |
Description |
StreamRange< google::cloud::contactcenterinsights::v1::View > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::UpdateViewRequest const &
|
Returns |
Type |
Description |
StatusOr< google::cloud::contactcenterinsights::v1::View > |
|
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
request |
google::cloud::contactcenterinsights::v1::DeleteViewRequest const &
|
Returns |
Type |
Description |
Status |
|