chromium/components/reading_list/core/fake_reading_list_model_storage.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/reading_list/core/fake_reading_list_model_storage.h"

#include <memory>

#include "base/memory/scoped_refptr.h"
#include "components/sync/model/metadata_batch.h"

FakeReadingListModelStorage::FakeScopedBatchUpdate::FakeScopedBatchUpdate(
    Observer* observer)
    :{}

FakeReadingListModelStorage::FakeScopedBatchUpdate::~FakeScopedBatchUpdate() =
    default;

void FakeReadingListModelStorage::FakeScopedBatchUpdate::SaveEntry(
    const ReadingListEntry& entry) {}

void FakeReadingListModelStorage::FakeScopedBatchUpdate::RemoveEntry(
    const GURL& entry_url) {}

syncer::MetadataChangeList* FakeReadingListModelStorage::FakeScopedBatchUpdate::
    GetSyncMetadataChangeList() {}

FakeReadingListModelStorage::FakeReadingListModelStorage()
    :{}

FakeReadingListModelStorage::FakeReadingListModelStorage(Observer* observer)
    :{}

FakeReadingListModelStorage::~FakeReadingListModelStorage() = default;

bool FakeReadingListModelStorage::TriggerLoadCompletion(
    LoadResultOrError load_result_or_error) {}

bool FakeReadingListModelStorage::TriggerLoadCompletion(
    std::vector<scoped_refptr<ReadingListEntry>> entries,
    std::unique_ptr<syncer::MetadataBatch> metadata_batch) {}

void FakeReadingListModelStorage::Load(base::Clock* clock,
                                       LoadCallback load_cb) {}

std::unique_ptr<ReadingListModelStorage::ScopedBatchUpdate>
FakeReadingListModelStorage::EnsureBatchCreated() {}

void FakeReadingListModelStorage::DeleteAllEntriesAndSyncMetadata() {}