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::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
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(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > > |
|
virtual UpdateCdnKey(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
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(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
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(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::video::stitcher::v1::Slate > > |
|
virtual DeleteSlate(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
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(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
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(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > > |
|
virtual UpdateLiveConfig(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::video::stitcher::v1::LiveConfig > > |
|
virtual CreateVodConfig(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
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(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::video::stitcher::v1::OperationMetadata > > |
|
virtual UpdateVodConfig(google::longrunning::Operation const &)
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter |
Name |
Description |
operation |
google::longrunning::Operation const &
|
Returns |
Type |
Description |
future< StatusOr< google::cloud::video::stitcher::v1::VodConfig > > |
|
virtual ListOperations(google::longrunning::ListOperationsRequest)
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::longrunning::ListOperationsRequest
|
Returns |
Type |
Description |
StreamRange< google::longrunning::Operation > |
|
virtual GetOperation(google::longrunning::GetOperationRequest 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::longrunning::GetOperationRequest const &
|
Returns |
Type |
Description |
StatusOr< google::longrunning::Operation > |
|
virtual DeleteOperation(google::longrunning::DeleteOperationRequest 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::longrunning::DeleteOperationRequest const &
|
Returns |
Type |
Description |
Status |
|
virtual CancelOperation(google::longrunning::CancelOperationRequest 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::longrunning::CancelOperationRequest const &
|
Returns |
Type |
Description |
Status |
|