#include <mocks.h>
|
| | MockDeviceBuffer (const DeviceBufferDescriptor &desc) |
| |
| | MOCK_METHOD (bool, SetLabel,(std::string_view label),(override)) |
| |
| | MOCK_METHOD (bool, SetLabel,(std::string_view label, Range range),(override)) |
| |
| | MOCK_METHOD (uint8_t *, OnGetContents,(),(const, override)) |
| |
| | MOCK_METHOD (bool, OnCopyHostBuffer,(const uint8_t *source, Range source_range, size_t offset),(override)) |
| |
| virtual | ~DeviceBuffer () |
| |
| bool | CopyHostBuffer (const uint8_t *source, Range source_range, size_t offset=0u) |
| |
| virtual bool | SetLabel (std::string_view label)=0 |
| |
| virtual bool | SetLabel (std::string_view label, Range range)=0 |
| |
| const DeviceBufferDescriptor & | GetDeviceBufferDescriptor () const |
| |
| virtual uint8_t * | OnGetContents () const =0 |
| |
| virtual void | Flush (std::optional< Range > range=std::nullopt) const |
| |
| virtual void | Invalidate (std::optional< Range > range=std::nullopt) const |
| |
Definition at line 27 of file mocks.h.
◆ MockDeviceBuffer()
Definition at line 29 of file mocks.h.
DeviceBuffer(DeviceBufferDescriptor desc)
◆ MOCK_METHOD() [1/4]
| impeller::testing::MockDeviceBuffer::MOCK_METHOD |
( |
bool |
, |
|
|
OnCopyHostBuffer |
, |
|
|
(const uint8_t *source, Range source_range, size_t offset) |
, |
|
|
(override) |
|
|
) |
| |
◆ MOCK_METHOD() [2/4]
| impeller::testing::MockDeviceBuffer::MOCK_METHOD |
( |
bool |
, |
|
|
SetLabel |
, |
|
|
(std::string_view label) |
, |
|
|
(override) |
|
|
) |
| |
◆ MOCK_METHOD() [3/4]
| impeller::testing::MockDeviceBuffer::MOCK_METHOD |
( |
bool |
, |
|
|
SetLabel |
, |
|
|
(std::string_view label, Range range) |
, |
|
|
(override) |
|
|
) |
| |
◆ MOCK_METHOD() [4/4]
| impeller::testing::MockDeviceBuffer::MOCK_METHOD |
( |
uint8_t * |
, |
|
|
OnGetContents |
, |
|
|
() |
, |
|
|
(const, override) |
|
|
) |
| |
The documentation for this class was generated from the following file: