Send feedback
Class MockLivestreamServiceConnection (2.26.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.26.0 keyboard_arrow_down
A class to mock LivestreamServiceConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type LivestreamServiceClient
. To do so, construct an object of type LivestreamServiceClient
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 CreateChannel(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::livestream::v1::Channel > >
virtual ListChannels(google::cloud::video::livestream::v1::ListChannelsRequest)
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::livestream::v1::ListChannelsRequest
Returns
Type
Description
StreamRange< google::cloud::video::livestream::v1::Channel >
virtual GetChannel(google::cloud::video::livestream::v1::GetChannelRequest 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::livestream::v1::GetChannelRequest const &
Returns
Type
Description
StatusOr< google::cloud::video::livestream::v1::Channel >
virtual DeleteChannel(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::livestream::v1::OperationMetadata > >
virtual UpdateChannel(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::livestream::v1::Channel > >
virtual StartChannel(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::livestream::v1::ChannelOperationResponse > >
virtual StopChannel(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::livestream::v1::ChannelOperationResponse > >
virtual CreateInput(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::livestream::v1::Input > >
virtual ListInputs(google::cloud::video::livestream::v1::ListInputsRequest)
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::livestream::v1::ListInputsRequest
Returns
Type
Description
StreamRange< google::cloud::video::livestream::v1::Input >
virtual GetInput(google::cloud::video::livestream::v1::GetInputRequest 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::livestream::v1::GetInputRequest const &
Returns
Type
Description
StatusOr< google::cloud::video::livestream::v1::Input >
virtual DeleteInput(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::livestream::v1::OperationMetadata > >
virtual UpdateInput(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::livestream::v1::Input > >
virtual CreateEvent(google::cloud::video::livestream::v1::CreateEventRequest 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::livestream::v1::CreateEventRequest const &
Returns
Type
Description
StatusOr< google::cloud::video::livestream::v1::Event >
virtual ListEvents(google::cloud::video::livestream::v1::ListEventsRequest)
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::livestream::v1::ListEventsRequest
Returns
Type
Description
StreamRange< google::cloud::video::livestream::v1::Event >
virtual GetEvent(google::cloud::video::livestream::v1::GetEventRequest 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::livestream::v1::GetEventRequest const &
Returns
Type
Description
StatusOr< google::cloud::video::livestream::v1::Event >
virtual DeleteEvent(google::cloud::video::livestream::v1::DeleteEventRequest 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::livestream::v1::DeleteEventRequest const &
Returns
Type
Description
Status
virtual CreateAsset(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::livestream::v1::Asset > >
virtual DeleteAsset(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::livestream::v1::OperationMetadata > >
virtual GetAsset(google::cloud::video::livestream::v1::GetAssetRequest 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::livestream::v1::GetAssetRequest const &
Returns
Type
Description
StatusOr< google::cloud::video::livestream::v1::Asset >
virtual ListAssets(google::cloud::video::livestream::v1::ListAssetsRequest)
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::livestream::v1::ListAssetsRequest
Returns
Type
Description
StreamRange< google::cloud::video::livestream::v1::Asset >
virtual GetPool(google::cloud::video::livestream::v1::GetPoolRequest 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::livestream::v1::GetPoolRequest const &
Returns
Type
Description
StatusOr< google::cloud::video::livestream::v1::Pool >
virtual UpdatePool(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::livestream::v1::Pool > >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-06 UTC."],[],[]]