Class MockVideoStitcherServiceConnection (2.15.1)

A class to mock VideoStitcherServiceConnection.

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

Functions

virtual options()

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

Returns
Type Description
Options

virtual CreateCdnKey(google::cloud::video::stitcher::v1::CreateCdnKeyRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::CreateCdnKeyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::CdnKey > >

virtual ListCdnKeys(google::cloud::video::stitcher::v1::ListCdnKeysRequest)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::ListCdnKeysRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::CdnKey >

virtual GetCdnKey(google::cloud::video::stitcher::v1::GetCdnKeyRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetCdnKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::CdnKey >

virtual DeleteCdnKey(google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > >

virtual UpdateCdnKey(google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::CdnKey > >

virtual CreateVodSession(google::cloud::video::stitcher::v1::CreateVodSessionRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::CreateVodSessionRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::VodSession >

virtual GetVodSession(google::cloud::video::stitcher::v1::GetVodSessionRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetVodSessionRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::VodSession >

virtual ListVodStitchDetails(google::cloud::video::stitcher::v1::ListVodStitchDetailsRequest)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::ListVodStitchDetailsRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::VodStitchDetail >

virtual GetVodStitchDetail(google::cloud::video::stitcher::v1::GetVodStitchDetailRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetVodStitchDetailRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::VodStitchDetail >

virtual ListVodAdTagDetails(google::cloud::video::stitcher::v1::ListVodAdTagDetailsRequest)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::ListVodAdTagDetailsRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::VodAdTagDetail >

virtual GetVodAdTagDetail(google::cloud::video::stitcher::v1::GetVodAdTagDetailRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetVodAdTagDetailRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::VodAdTagDetail >

virtual ListLiveAdTagDetails(google::cloud::video::stitcher::v1::ListLiveAdTagDetailsRequest)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::ListLiveAdTagDetailsRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::LiveAdTagDetail >

virtual GetLiveAdTagDetail(google::cloud::video::stitcher::v1::GetLiveAdTagDetailRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetLiveAdTagDetailRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::LiveAdTagDetail >

virtual CreateSlate(google::cloud::video::stitcher::v1::CreateSlateRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::CreateSlateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::Slate > >

virtual ListSlates(google::cloud::video::stitcher::v1::ListSlatesRequest)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::ListSlatesRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::Slate >

virtual GetSlate(google::cloud::video::stitcher::v1::GetSlateRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetSlateRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::Slate >

virtual UpdateSlate(google::cloud::video::stitcher::v1::UpdateSlateRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::UpdateSlateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::Slate > >

virtual DeleteSlate(google::cloud::video::stitcher::v1::DeleteSlateRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::DeleteSlateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > >

virtual CreateLiveSession(google::cloud::video::stitcher::v1::CreateLiveSessionRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::CreateLiveSessionRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::LiveSession >

virtual GetLiveSession(google::cloud::video::stitcher::v1::GetLiveSessionRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetLiveSessionRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::LiveSession >

virtual CreateLiveConfig(google::cloud::video::stitcher::v1::CreateLiveConfigRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::CreateLiveConfigRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::LiveConfig > >

virtual ListLiveConfigs(google::cloud::video::stitcher::v1::ListLiveConfigsRequest)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::ListLiveConfigsRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::LiveConfig >

virtual GetLiveConfig(google::cloud::video::stitcher::v1::GetLiveConfigRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::GetLiveConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::LiveConfig >

virtual DeleteLiveConfig(google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const &)

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

Parameter
Name Description
request google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > >