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::MockConnectionServiceConnection Class Reference

A class to mock ConnectionServiceConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::connection::v1::Connection >, CreateConnection,(google::cloud::bigquery::connection::v1::CreateConnectionRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::connection::v1::Connection >, GetConnection,(google::cloud::bigquery::connection::v1::GetConnectionRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::connection::v1::Connection >, ListConnections,(google::cloud::bigquery::connection::v1::ListConnectionsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::connection::v1::Connection >, UpdateConnection,(google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteConnection,(google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(google::iam::v1::GetIamPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(google::iam::v1::SetIamPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(google::iam::v1::TestIamPermissionsRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::connection::v1::Connection > CreateConnection (google::cloud::bigquery::connection::v1::CreateConnectionRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::connection::v1::Connection > GetConnection (google::cloud::bigquery::connection::v1::GetConnectionRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::connection::v1::Connection > ListConnections (google::cloud::bigquery::connection::v1::ListConnectionsRequest request)
 
virtual StatusOr< google::cloud::bigquery::connection::v1::Connection > UpdateConnection (google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &request)
 
virtual Status DeleteConnection (google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 

Detailed Description

A class to mock ConnectionServiceConnection.

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

Member Function Documentation

◆ CreateConnection()

virtual StatusOr<google::cloud::bigquery::connection::v1::Connection> google::cloud::bigquery::ConnectionServiceConnection::CreateConnection ( google::cloud::bigquery::connection::v1::CreateConnectionRequest const &  request)
virtualinherited

◆ DeleteConnection()

virtual Status google::cloud::bigquery::ConnectionServiceConnection::DeleteConnection ( google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &  request)
virtualinherited

◆ GetConnection()

virtual StatusOr<google::cloud::bigquery::connection::v1::Connection> google::cloud::bigquery::ConnectionServiceConnection::GetConnection ( google::cloud::bigquery::connection::v1::GetConnectionRequest const &  request)
virtualinherited

◆ GetIamPolicy()

virtual StatusOr<google::iam::v1::Policy> google::cloud::bigquery::ConnectionServiceConnection::GetIamPolicy ( google::iam::v1::GetIamPolicyRequest const &  request)
virtualinherited

◆ ListConnections()

virtual StreamRange<google::cloud::bigquery::connection::v1::Connection> google::cloud::bigquery::ConnectionServiceConnection::ListConnections ( google::cloud::bigquery::connection::v1::ListConnectionsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/9]

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

◆ MOCK_METHOD() [2/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( Status  ,
DeleteConnection  ,
(google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::connection::v1::Connection >  ,
CreateConnection  ,
(google::cloud::bigquery::connection::v1::CreateConnectionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::connection::v1::Connection >  ,
GetConnection  ,
(google::cloud::bigquery::connection::v1::GetConnectionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::connection::v1::Connection >  ,
UpdateConnection  ,
(google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
GetIamPolicy  ,
(google::iam::v1::GetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
SetIamPolicy  ,
(google::iam::v1::SetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::TestIamPermissionsResponse >  ,
TestIamPermissions  ,
(google::iam::v1::TestIamPermissionsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/9]

google::cloud::bigquery_mocks::MockConnectionServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::connection::v1::Connection >  ,
ListConnections  ,
(google::cloud::bigquery::connection::v1::ListConnectionsRequest request)  ,
(override)   
)

◆ options()

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

Definition at line 65 of file connection_connection.h.

◆ SetIamPolicy()

virtual StatusOr<google::iam::v1::Policy> google::cloud::bigquery::ConnectionServiceConnection::SetIamPolicy ( google::iam::v1::SetIamPolicyRequest const &  request)
virtualinherited

◆ TestIamPermissions()

virtual StatusOr<google::iam::v1::TestIamPermissionsResponse> google::cloud::bigquery::ConnectionServiceConnection::TestIamPermissions ( google::iam::v1::TestIamPermissionsRequest const &  request)
virtualinherited

◆ UpdateConnection()

virtual StatusOr<google::cloud::bigquery::connection::v1::Connection> google::cloud::bigquery::ConnectionServiceConnection::UpdateConnection ( google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &  request)
virtualinherited