Class MockVideoStitcherServiceConnection (2.26.0)

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(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > >

virtual UpdateCdnKey(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::Slate > >

virtual DeleteSlate(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > >

virtual UpdateLiveConfig(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::LiveConfig > >

virtual CreateVodConfig(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::VodConfig > >

virtual ListVodConfigs(google::cloud::video::stitcher::v1::ListVodConfigsRequest)

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::ListVodConfigsRequest
Returns
Type Description
StreamRange< google::cloud::video::stitcher::v1::VodConfig >

virtual GetVodConfig(google::cloud::video::stitcher::v1::GetVodConfigRequest 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::GetVodConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::video::stitcher::v1::VodConfig >

virtual DeleteVodConfig(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > >

virtual UpdateVodConfig(ExperimentalTag, google::longrunning::Operation const &)

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

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::video::stitcher::v1::VodConfig > >