Class SimulatorConnection (2.20.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in SimulatorClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SimulatorClient.

To create a concrete instance, see MakeSimulatorConnection().

For mocking, see policysimulator_v1_mocks::MockSimulatorConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetReplay(google::cloud::policysimulator::v1::GetReplayRequest const &)

Parameter
NameDescription
request google::cloud::policysimulator::v1::GetReplayRequest const &
Returns
TypeDescription
StatusOr< google::cloud::policysimulator::v1::Replay >

virtual CreateReplay(google::cloud::policysimulator::v1::CreateReplayRequest const &)

Parameter
NameDescription
request google::cloud::policysimulator::v1::CreateReplayRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::policysimulator::v1::Replay > >

virtual ListReplayResults(google::cloud::policysimulator::v1::ListReplayResultsRequest)

Parameter
NameDescription
request google::cloud::policysimulator::v1::ListReplayResultsRequest
Returns
TypeDescription
StreamRange< google::cloud::policysimulator::v1::ReplayResult >