Class MockTopicAdminConnection (2.30.0)

A googlemock-based mock for pubsub::TopicAdminConnection.

Functions

virtual CreateTopic(CreateTopicParams)

Defines the interface for TopicAdminClient::CreateTopic()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
CreateTopicParams
Returns
Type Description
StatusOr< google::pubsub::v1::Topic >

virtual GetTopic(GetTopicParams)

Defines the interface for TopicAdminClient::GetTopic()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
GetTopicParams
Returns
Type Description
StatusOr< google::pubsub::v1::Topic >

virtual UpdateTopic(UpdateTopicParams)

Defines the interface for TopicAdminClient::UpdateTopic()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
UpdateTopicParams
Returns
Type Description
StatusOr< google::pubsub::v1::Topic >

virtual ListTopics(ListTopicsParams)

Defines the interface for TopicAdminClient::ListTopics()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
ListTopicsParams
Returns
Type Description
ListTopicsRange

virtual DeleteTopic(DeleteTopicParams)

Defines the interface for TopicAdminClient::DeleteTopic()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
DeleteTopicParams
Returns
Type Description
Status

virtual DetachSubscription(DetachSubscriptionParams)

Defines the interface for TopicAdminClient::DetachSubscriptions()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
DetachSubscriptionParams
Returns
Type Description
StatusOr< google::pubsub::v1::DetachSubscriptionResponse >

virtual ListTopicSubscriptions(ListTopicSubscriptionsParams)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
ListTopicSubscriptionsParams
Returns
Type Description
ListTopicSubscriptionsRange

virtual ListTopicSnapshots(ListTopicSnapshotsParams)

Defines the interface for TopicAdminClient::ListTopicSnapshots()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
ListTopicSnapshotsParams
Returns
Type Description
ListTopicSnapshotsRange

virtual options() const

Returns the options used to create the connection.

Returns
Type Description
Options