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

A class to mock AnalyticsHubServiceConnection. More...

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

Member Function Documentation

◆ CreateDataExchange()

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

◆ CreateListing()

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

◆ DeleteDataExchange()

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

◆ DeleteListing()

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

◆ GetDataExchange()

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

◆ GetIamPolicy()

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

◆ GetListing()

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

◆ ListDataExchanges()

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

◆ ListListings()

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

◆ ListOrgDataExchanges()

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

◆ MOCK_METHOD() [1/16]

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

◆ MOCK_METHOD() [2/16]

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

◆ MOCK_METHOD() [3/16]

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

◆ MOCK_METHOD() [4/16]

google::cloud::bigquery_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_mocks::MockAnalyticsHubServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
GetIamPolicy  ,
(google::iam::v1::GetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/16]

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

◆ MOCK_METHOD() [13/16]

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

◆ MOCK_METHOD() [14/16]

google::cloud::bigquery_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1_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_analyticshub_v1::AnalyticsHubServiceConnection::options ( )
inlinevirtualinherited

◆ SetIamPolicy()

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

◆ SubscribeListing()

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

◆ TestIamPermissions()

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

◆ UpdateDataExchange()

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

◆ UpdateListing()

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