#include "third_party/blink/renderer/modules/storage/testing/mock_storage_area.h"
#include "base/functional/bind.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
MockStorageArea::MockStorageArea() = default;
MockStorageArea::~MockStorageArea() = default;
mojo::PendingRemote<mojom::blink::StorageArea>
MockStorageArea::GetInterfaceRemote() { … }
void MockStorageArea::InjectKeyValue(const Vector<uint8_t>& key,
const Vector<uint8_t>& value) { … }
void MockStorageArea::Clear() { … }
void MockStorageArea::AddObserver(
mojo::PendingRemote<mojom::blink::StorageAreaObserver> observer) { … }
void MockStorageArea::Put(
const Vector<uint8_t>& key,
const Vector<uint8_t>& value,
const std::optional<Vector<uint8_t>>& client_old_value,
const String& source,
PutCallback callback) { … }
void MockStorageArea::Delete(
const Vector<uint8_t>& key,
const std::optional<Vector<uint8_t>>& client_old_value,
const String& source,
DeleteCallback callback) { … }
void MockStorageArea::DeleteAll(
const String& source,
mojo::PendingRemote<mojom::blink::StorageAreaObserver> new_observer,
DeleteAllCallback callback) { … }
void MockStorageArea::Get(const Vector<uint8_t>& key, GetCallback callback) { … }
void MockStorageArea::GetAll(
mojo::PendingRemote<mojom::blink::StorageAreaObserver> new_observer,
GetAllCallback callback) { … }
void MockStorageArea::Checkpoint() { … }
}