Google Cloud BigQuery C++ Client  2.6.0
A C++ Client Library for Google Cloud BigQuery
Public Member Functions | List of all members
google::cloud::bigquery_mocks::MockMigrationServiceConnection Class Reference

A class to mock MigrationServiceConnection. More...

#include <google/cloud/bigquery/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.

Definition at line 45 of file mock_migration_connection.h.

Member Function Documentation

◆ CreateMigrationWorkflow()

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

◆ DeleteMigrationWorkflow()

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

◆ GetMigrationSubtask()

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

◆ GetMigrationWorkflow()

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

◆ ListMigrationSubtasks()

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

◆ ListMigrationWorkflows()

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

◆ MOCK_METHOD() [1/8]

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

◆ MOCK_METHOD() [2/8]

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

◆ MOCK_METHOD() [3/8]

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

◆ MOCK_METHOD() [4/8]

google::cloud::bigquery_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_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_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_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_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::MigrationServiceConnection::options ( )
inlinevirtualinherited

Definition at line 65 of file migration_connection.h.

◆ StartMigrationWorkflow()

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