#include "components/offline_pages/core/background/reconcile_task.h"
#include <memory>
#include <set>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/test_mock_time_task_runner.h"
#include "components/offline_pages/core/background/request_coordinator.h"
#include "components/offline_pages/core/background/request_queue_store.h"
#include "components/offline_pages/core/background/request_queue_task_test_base.h"
#include "components/offline_pages/core/background/save_page_request.h"
#include "components/offline_pages/core/background/test_request_queue_store.h"
#include "components/offline_pages/core/offline_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
namespace {
const int64_t kRequestId1 = …;
const ClientId kClientId1("bookmark", "1234");
const int64_t kRequestId2 = …;
const ClientId kClientId2("bookmark", "5678");
const bool kUserRequested = …;
class ReconcileTaskTest : public RequestQueueTaskTestBase { … };
void ReconcileTaskTest::SetUp() { … }
void ReconcileTaskTest::GetRequestsCallback(
bool success,
std::vector<std::unique_ptr<SavePageRequest>> requests) { … }
void ReconcileTaskTest::ReconcileCallback(UpdateRequestsResult result) { … }
void ReconcileTaskTest::QueueRequests(const SavePageRequest& request1,
const SavePageRequest& request2) { … }
void ReconcileTaskTest::MakeTask() { … }
TEST_F(ReconcileTaskTest, Reconcile) { … }
TEST_F(ReconcileTaskTest, NothingToReconcile) { … }
}
}