Google Cloud BigQuery C++ Client 2.11.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection Class Reference

A class to mock MigrationServiceConnection. More...

#include <google/cloud/bigquery/migration/v2/mocks/mock_migration_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow >, CreateMigrationWorkflow,(google::cloud::bigquery::migration::v2::CreateMigrationWorkflowRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow >, GetMigrationWorkflow,(google::cloud::bigquery::migration::v2::GetMigrationWorkflowRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::migration::v2::MigrationWorkflow >, ListMigrationWorkflows,(google::cloud::bigquery::migration::v2::ListMigrationWorkflowsRequest request),(override))
 
 MOCK_METHOD (Status, DeleteMigrationWorkflow,(google::cloud::bigquery::migration::v2::DeleteMigrationWorkflowRequest const &request),(override))
 
 MOCK_METHOD (Status, StartMigrationWorkflow,(google::cloud::bigquery::migration::v2::StartMigrationWorkflowRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::migration::v2::MigrationSubtask >, GetMigrationSubtask,(google::cloud::bigquery::migration::v2::GetMigrationSubtaskRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::migration::v2::MigrationSubtask >, ListMigrationSubtasks,(google::cloud::bigquery::migration::v2::ListMigrationSubtasksRequest request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow > CreateMigrationWorkflow (google::cloud::bigquery::migration::v2::CreateMigrationWorkflowRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow > GetMigrationWorkflow (google::cloud::bigquery::migration::v2::GetMigrationWorkflowRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::migration::v2::MigrationWorkflow > ListMigrationWorkflows (google::cloud::bigquery::migration::v2::ListMigrationWorkflowsRequest request)
 
virtual Status DeleteMigrationWorkflow (google::cloud::bigquery::migration::v2::DeleteMigrationWorkflowRequest const &request)
 
virtual Status StartMigrationWorkflow (google::cloud::bigquery::migration::v2::StartMigrationWorkflowRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::migration::v2::MigrationSubtask > GetMigrationSubtask (google::cloud::bigquery::migration::v2::GetMigrationSubtaskRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::migration::v2::MigrationSubtask > ListMigrationSubtasks (google::cloud::bigquery::migration::v2::ListMigrationSubtasksRequest request)
 

Detailed Description

A class to mock MigrationServiceConnection.

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

◆ CreateMigrationWorkflow()

virtual StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow > google::cloud::bigquery_migration_v2::MigrationServiceConnection::CreateMigrationWorkflow ( google::cloud::bigquery::migration::v2::CreateMigrationWorkflowRequest const &  request)
virtualinherited

◆ DeleteMigrationWorkflow()

virtual Status google::cloud::bigquery_migration_v2::MigrationServiceConnection::DeleteMigrationWorkflow ( google::cloud::bigquery::migration::v2::DeleteMigrationWorkflowRequest const &  request)
virtualinherited

◆ GetMigrationSubtask()

virtual StatusOr< google::cloud::bigquery::migration::v2::MigrationSubtask > google::cloud::bigquery_migration_v2::MigrationServiceConnection::GetMigrationSubtask ( google::cloud::bigquery::migration::v2::GetMigrationSubtaskRequest const &  request)
virtualinherited

◆ GetMigrationWorkflow()

virtual StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow > google::cloud::bigquery_migration_v2::MigrationServiceConnection::GetMigrationWorkflow ( google::cloud::bigquery::migration::v2::GetMigrationWorkflowRequest const &  request)
virtualinherited

◆ ListMigrationSubtasks()

virtual StreamRange< google::cloud::bigquery::migration::v2::MigrationSubtask > google::cloud::bigquery_migration_v2::MigrationServiceConnection::ListMigrationSubtasks ( google::cloud::bigquery::migration::v2::ListMigrationSubtasksRequest  request)
virtualinherited

◆ ListMigrationWorkflows()

virtual StreamRange< google::cloud::bigquery::migration::v2::MigrationWorkflow > google::cloud::bigquery_migration_v2::MigrationServiceConnection::ListMigrationWorkflows ( google::cloud::bigquery::migration::v2::ListMigrationWorkflowsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( Status  ,
DeleteMigrationWorkflow  ,
(google::cloud::bigquery::migration::v2::DeleteMigrationWorkflowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( Status  ,
StartMigrationWorkflow  ,
(google::cloud::bigquery::migration::v2::StartMigrationWorkflowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::migration::v2::MigrationSubtask >  ,
GetMigrationSubtask  ,
(google::cloud::bigquery::migration::v2::GetMigrationSubtaskRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow >  ,
CreateMigrationWorkflow  ,
(google::cloud::bigquery::migration::v2::CreateMigrationWorkflowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::migration::v2::MigrationWorkflow >  ,
GetMigrationWorkflow  ,
(google::cloud::bigquery::migration::v2::GetMigrationWorkflowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::migration::v2::MigrationSubtask >  ,
ListMigrationSubtasks  ,
(google::cloud::bigquery::migration::v2::ListMigrationSubtasksRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [8/8]

google::cloud::bigquery_migration_v2_mocks::MockMigrationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::migration::v2::MigrationWorkflow >  ,
ListMigrationWorkflows  ,
(google::cloud::bigquery::migration::v2::ListMigrationWorkflowsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigquery_migration_v2::MigrationServiceConnection::options ( )
inlinevirtualinherited

◆ StartMigrationWorkflow()

virtual Status google::cloud::bigquery_migration_v2::MigrationServiceConnection::StartMigrationWorkflow ( google::cloud::bigquery::migration::v2::StartMigrationWorkflowRequest const &  request)
virtualinherited