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

A class to mock DataTransferServiceConnection. More...

#include <google/cloud/bigquery/mocks/mock_data_transfer_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource >, GetDataSource,(google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource >, ListDataSources,(google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >, CreateTransferConfig,(google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >, UpdateTransferConfig,(google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteTransferConfig,(google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >, GetTransferConfig,(google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig >, ListTransferConfigs,(google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse >, ScheduleTransferRuns,(google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse >, StartManualTransferRuns,(google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun >, GetTransferRun,(google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteTransferRun,(google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun >, ListTransferRuns,(google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage >, ListTransferLogs,(google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse >, CheckValidCreds,(google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request),(override))
 
 MOCK_METHOD (Status, EnrollDataSources,(google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource > GetDataSource (google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource > ListDataSources (google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > CreateTransferConfig (google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > UpdateTransferConfig (google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request)
 
virtual Status DeleteTransferConfig (google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > GetTransferConfig (google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig > ListTransferConfigs (google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse > ScheduleTransferRuns (google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse > StartManualTransferRuns (google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun > GetTransferRun (google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request)
 
virtual Status DeleteTransferRun (google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun > ListTransferRuns (google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage > ListTransferLogs (google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse > CheckValidCreds (google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request)
 
virtual Status EnrollDataSources (google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request)
 

Detailed Description

A class to mock DataTransferServiceConnection.

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

Member Function Documentation

◆ CheckValidCreds()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse> google::cloud::bigquery::DataTransferServiceConnection::CheckValidCreds ( google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &  request)
virtualinherited

◆ CreateTransferConfig()

virtual StatusOr<google::cloud::bigquery::datatransfer::v1::TransferConfig> google::cloud::bigquery::DataTransferServiceConnection::CreateTransferConfig ( google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &  request)
virtualinherited

◆ DeleteTransferConfig()

virtual Status google::cloud::bigquery::DataTransferServiceConnection::DeleteTransferConfig ( google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &  request)
virtualinherited

◆ DeleteTransferRun()

virtual Status google::cloud::bigquery::DataTransferServiceConnection::DeleteTransferRun ( google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &  request)
virtualinherited

◆ EnrollDataSources()

virtual Status google::cloud::bigquery::DataTransferServiceConnection::EnrollDataSources ( google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &  request)
virtualinherited

◆ GetDataSource()

virtual StatusOr<google::cloud::bigquery::datatransfer::v1::DataSource> google::cloud::bigquery::DataTransferServiceConnection::GetDataSource ( google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &  request)
virtualinherited

◆ GetTransferConfig()

virtual StatusOr<google::cloud::bigquery::datatransfer::v1::TransferConfig> google::cloud::bigquery::DataTransferServiceConnection::GetTransferConfig ( google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &  request)
virtualinherited

◆ GetTransferRun()

virtual StatusOr<google::cloud::bigquery::datatransfer::v1::TransferRun> google::cloud::bigquery::DataTransferServiceConnection::GetTransferRun ( google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &  request)
virtualinherited

◆ ListDataSources()

virtual StreamRange<google::cloud::bigquery::datatransfer::v1::DataSource> google::cloud::bigquery::DataTransferServiceConnection::ListDataSources ( google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest  request)
virtualinherited

◆ ListTransferConfigs()

virtual StreamRange<google::cloud::bigquery::datatransfer::v1::TransferConfig> google::cloud::bigquery::DataTransferServiceConnection::ListTransferConfigs ( google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest  request)
virtualinherited

◆ ListTransferLogs()

virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage> google::cloud::bigquery::DataTransferServiceConnection::ListTransferLogs ( google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest  request)
virtualinherited

◆ ListTransferRuns()

virtual StreamRange<google::cloud::bigquery::datatransfer::v1::TransferRun> google::cloud::bigquery::DataTransferServiceConnection::ListTransferRuns ( google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/16]

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

◆ MOCK_METHOD() [2/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Status  ,
DeleteTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Status  ,
DeleteTransferRun  ,
(google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Status  ,
EnrollDataSources  ,
(google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse >  ,
CheckValidCreds  ,
(google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource >  ,
GetDataSource  ,
(google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse >  ,
ScheduleTransferRuns  ,
(google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse >  ,
StartManualTransferRuns  ,
(google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
CreateTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
GetTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
UpdateTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun >  ,
GetTransferRun  ,
(google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [13/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource >  ,
ListDataSources  ,
(google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [14/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
ListTransferConfigs  ,
(google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [15/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage >  ,
ListTransferLogs  ,
(google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [16/16]

google::cloud::bigquery_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun >  ,
ListTransferRuns  ,
(google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigquery::DataTransferServiceConnection::options ( )
inlinevirtualinherited

Definition at line 65 of file data_transfer_connection.h.

◆ ScheduleTransferRuns()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse> google::cloud::bigquery::DataTransferServiceConnection::ScheduleTransferRuns ( google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &  request)
virtualinherited

◆ StartManualTransferRuns()

virtual StatusOr<google::cloud::bigquery::datatransfer::v1:: StartManualTransferRunsResponse> google::cloud::bigquery::DataTransferServiceConnection::StartManualTransferRuns ( google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &  request)
virtualinherited

◆ UpdateTransferConfig()

virtual StatusOr<google::cloud::bigquery::datatransfer::v1::TransferConfig> google::cloud::bigquery::DataTransferServiceConnection::UpdateTransferConfig ( google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &  request)
virtualinherited