Class MockAsyncObjectDescriptorConnection (3.5.0-rc)

Functions

metadata() const

Returns, if available, the object metadata associated with this descriptor.

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

Returns
Type Description
absl::optional< google::storage::v2::Object >

Read(ReadParams)

Starts a new range read in the current descriptor.

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

Parameter
Name Description
p ReadParams
Returns
Type Description
std::unique_ptr< AsyncReaderConnection >

MakeSubsequentStream()

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

Returns
Type Description
void

options() const

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

Returns
Type Description
Options

IsOpen() const

Returns true if the descriptor is open.

A descriptor is open if it has not been cancelled and has not hit a permanent failure.

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

Returns
Type Description
bool