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

A class to mock AnalyticsHubServiceConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange >, ListDataExchanges,(google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange >, ListOrgDataExchanges,(google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange >, GetDataExchange,(google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange >, CreateDataExchange,(google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange >, UpdateDataExchange,(google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteDataExchange,(google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::analyticshub::v1::Listing >, ListListings,(google::cloud::bigquery::analyticshub::v1::ListListingsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::Listing >, GetListing,(google::cloud::bigquery::analyticshub::v1::GetListingRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::Listing >, CreateListing,(google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::Listing >, UpdateListing,(google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteListing,(google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse >, SubscribeListing,(google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest 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 StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > ListDataExchanges (google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest request)
 
virtual StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > ListOrgDataExchanges (google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > GetDataExchange (google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > CreateDataExchange (google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > UpdateDataExchange (google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &request)
 
virtual Status DeleteDataExchange (google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::analyticshub::v1::Listing > ListListings (google::cloud::bigquery::analyticshub::v1::ListListingsRequest request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > GetListing (google::cloud::bigquery::analyticshub::v1::GetListingRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > CreateListing (google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > UpdateListing (google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &request)
 
virtual Status DeleteListing (google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse > SubscribeListing (google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest 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 AnalyticsHubServiceConnection.

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

Member Function Documentation

◆ CreateDataExchange()

virtual StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange> google::cloud::bigquery::AnalyticsHubServiceConnection::CreateDataExchange ( google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &  request)
virtualinherited

◆ CreateListing()

virtual StatusOr<google::cloud::bigquery::analyticshub::v1::Listing> google::cloud::bigquery::AnalyticsHubServiceConnection::CreateListing ( google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &  request)
virtualinherited

◆ DeleteDataExchange()

virtual Status google::cloud::bigquery::AnalyticsHubServiceConnection::DeleteDataExchange ( google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &  request)
virtualinherited

◆ DeleteListing()

virtual Status google::cloud::bigquery::AnalyticsHubServiceConnection::DeleteListing ( google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &  request)
virtualinherited

◆ GetDataExchange()

virtual StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange> google::cloud::bigquery::AnalyticsHubServiceConnection::GetDataExchange ( google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &  request)
virtualinherited

◆ GetIamPolicy()

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

◆ GetListing()

virtual StatusOr<google::cloud::bigquery::analyticshub::v1::Listing> google::cloud::bigquery::AnalyticsHubServiceConnection::GetListing ( google::cloud::bigquery::analyticshub::v1::GetListingRequest const &  request)
virtualinherited

◆ ListDataExchanges()

virtual StreamRange<google::cloud::bigquery::analyticshub::v1::DataExchange> google::cloud::bigquery::AnalyticsHubServiceConnection::ListDataExchanges ( google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest  request)
virtualinherited

◆ ListListings()

virtual StreamRange<google::cloud::bigquery::analyticshub::v1::Listing> google::cloud::bigquery::AnalyticsHubServiceConnection::ListListings ( google::cloud::bigquery::analyticshub::v1::ListListingsRequest  request)
virtualinherited

◆ ListOrgDataExchanges()

virtual StreamRange<google::cloud::bigquery::analyticshub::v1::DataExchange> google::cloud::bigquery::AnalyticsHubServiceConnection::ListOrgDataExchanges ( google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/16]

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

◆ MOCK_METHOD() [2/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( Status  ,
DeleteDataExchange  ,
(google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( Status  ,
DeleteListing  ,
(google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange >  ,
CreateDataExchange  ,
(google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange >  ,
GetDataExchange  ,
(google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange >  ,
UpdateDataExchange  ,
(google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::Listing >  ,
CreateListing  ,
(google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::Listing >  ,
GetListing  ,
(google::cloud::bigquery::analyticshub::v1::GetListingRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::Listing >  ,
UpdateListing  ,
(google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse >  ,
SubscribeListing  ,
(google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/16]

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

◆ MOCK_METHOD() [12/16]

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

◆ MOCK_METHOD() [13/16]

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

◆ MOCK_METHOD() [14/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange >  ,
ListDataExchanges  ,
(google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [15/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange >  ,
ListOrgDataExchanges  ,
(google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [16/16]

google::cloud::bigquery_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::analyticshub::v1::Listing >  ,
ListListings  ,
(google::cloud::bigquery::analyticshub::v1::ListListingsRequest request)  ,
(override)   
)

◆ options()

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

Definition at line 65 of file analytics_hub_connection.h.

◆ SetIamPolicy()

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

◆ SubscribeListing()

virtual StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse> google::cloud::bigquery::AnalyticsHubServiceConnection::SubscribeListing ( google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const &  request)
virtualinherited

◆ TestIamPermissions()

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

◆ UpdateDataExchange()

virtual StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange> google::cloud::bigquery::AnalyticsHubServiceConnection::UpdateDataExchange ( google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &  request)
virtualinherited

◆ UpdateListing()

virtual StatusOr<google::cloud::bigquery::analyticshub::v1::Listing> google::cloud::bigquery::AnalyticsHubServiceConnection::UpdateListing ( google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &  request)
virtualinherited