Functions
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 |
AsyncInsertObject(InsertObjectParams)
Insert a new object.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
InsertObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< storage::ObjectMetadata > > |
AsyncReadObject(ReadObjectParams)
Asynchronously create a stream to read object contents.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ReadObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< std::unique_ptr< AsyncReaderConnection > > > |
AsyncReadObjectRange(ReadObjectParams)
Read a range from an object returning all the contents.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ReadObjectParams
|
Returns | |
---|---|
Type | Description |
future< AsyncReadObjectRangeResponse > |
AsyncComposeObject(ComposeObjectParams)
Create a new object by composing (concatenating) the contents of existing objects.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ComposeObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< storage::ObjectMetadata > > |
AsyncDeleteObject(DeleteObjectParams)
Delete an object.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
DeleteObjectParams
|
Returns | |
---|---|
Type | Description |
future< Status > |