#include "dawn/wire/server/ServerMemoryTransferService_mock.h"
#include "dawn/common/Assert.h"
namespace dawn::wire::server {
MockMemoryTransferService::MockReadHandle::MockReadHandle(MockMemoryTransferService* service)
: … { … }
MockMemoryTransferService::MockReadHandle::~MockReadHandle() { … }
size_t MockMemoryTransferService::MockReadHandle::SizeOfSerializeDataUpdate(size_t offset,
size_t size) { … }
void MockMemoryTransferService::MockReadHandle::SerializeDataUpdate(const void* data,
size_t offset,
size_t size,
void* serializePointer) { … }
MockMemoryTransferService::MockWriteHandle::MockWriteHandle(MockMemoryTransferService* service)
: … { … }
MockMemoryTransferService::MockWriteHandle::~MockWriteHandle() { … }
const uint32_t* MockMemoryTransferService::MockWriteHandle::GetData() const { … }
bool MockMemoryTransferService::MockWriteHandle::DeserializeDataUpdate(
const void* deserializePointer,
size_t deserializeSize,
size_t offset,
size_t size) { … }
MockMemoryTransferService::MockMemoryTransferService() = default;
MockMemoryTransferService::~MockMemoryTransferService() = default;
bool MockMemoryTransferService::DeserializeReadHandle(const void* deserializePointer,
size_t deserializeSize,
ReadHandle** readHandle) { … }
bool MockMemoryTransferService::DeserializeWriteHandle(const void* deserializePointer,
size_t deserializeSize,
WriteHandle** writeHandle) { … }
MockMemoryTransferService::MockReadHandle* MockMemoryTransferService::NewReadHandle() { … }
MockMemoryTransferService::MockWriteHandle* MockMemoryTransferService::NewWriteHandle() { … }
}