A googlemock-based mock for pubsub::SubscriptionAdminConnection.
Functions
virtual CreateSubscription(CreateSubscriptionParams)
Defines the interface for SubscriptionAdminClient::CreateSubscription()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
CreateSubscriptionParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::Subscription > |
|
virtual GetSubscription(GetSubscriptionParams)
Defines the interface for SubscriptionAdminClient::GetSubscription()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
GetSubscriptionParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::Subscription > |
|
virtual UpdateSubscription(UpdateSubscriptionParams)
Defines the interface for SubscriptionAdminClient::UpdateSubscription()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
UpdateSubscriptionParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::Subscription > |
|
virtual ListSubscriptions(ListSubscriptionsParams)
Defines the interface for SubscriptionAdminClient::ListSubscriptions()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
ListSubscriptionsParams
|
| Returns | |
|---|---|
| Type | Description |
ListSubscriptionsRange |
|
virtual DeleteSubscription(DeleteSubscriptionParams)
Defines the interface for SubscriptionAdminClient::DeleteSubscription()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
DeleteSubscriptionParams
|
| Returns | |
|---|---|
| Type | Description |
Status |
|
virtual ModifyPushConfig(ModifyPushConfigParams)
Defines the interface for SubscriptionAdminClient::ModifyPushConfig()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
ModifyPushConfigParams
|
| Returns | |
|---|---|
| Type | Description |
Status |
|
virtual CreateSnapshot(CreateSnapshotParams)
Defines the interface for SnapshotAdminClient::CreateSnapshot()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
CreateSnapshotParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::Snapshot > |
|
virtual GetSnapshot(GetSnapshotParams)
Defines the interface for SnapshotAdminClient::GetSnapshot()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
GetSnapshotParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::Snapshot > |
|
virtual UpdateSnapshot(UpdateSnapshotParams)
Defines the interface for SnapshotAdminClient::UpdateSnapshot()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
UpdateSnapshotParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::Snapshot > |
|
virtual ListSnapshots(ListSnapshotsParams)
Defines the interface for SubscriptionAdminClient::ListSnapshots()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
ListSnapshotsParams
|
| Returns | |
|---|---|
| Type | Description |
ListSnapshotsRange |
|
virtual DeleteSnapshot(DeleteSnapshotParams)
Defines the interface for SnapshotAdminClient::DeleteSnapshot()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
DeleteSnapshotParams
|
| Returns | |
|---|---|
| Type | Description |
Status |
|
virtual Seek(SeekParams)
Defines the interface for SubscriptionAdminClient::Seek()
This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
| Parameter | |
|---|---|
| Name | Description |
|
SeekParams
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::pubsub::v1::SeekResponse > |
|
virtual options() const
Return the options used to create the connection.
| Returns | |
|---|---|
| Type | Description |
Options |
|