chromium/components/offline_pages/core/model/persistent_page_consistency_check_task_unittest.cc

// Copyright 2018 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/offline_pages/core/model/persistent_page_consistency_check_task.h"

#include <memory>
#include <utility>

#include "base/functional/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "components/offline_pages/core/client_namespace_constants.h"
#include "components/offline_pages/core/model/model_task_test_base.h"
#include "components/offline_pages/core/model/offline_page_test_utils.h"
#include "components/offline_pages/core/offline_page_archive_publisher.h"
#include "testing/gtest/include/gtest/gtest.h"

A;
Eq;
IsEmpty;
UnorderedElementsAre;

namespace offline_pages {

PersistentPageConsistencyCheckCallback;

class PersistentPageConsistencyCheckTaskTest : public ModelTaskTestBase {};

// This test is affected by https://crbug.com/725685, which only affects windows
// platform.
#if BUILDFLAG(IS_WIN)
#define MAYBE_ClearExpiredPersistentPages
#else
#define MAYBE_ClearExpiredPersistentPages
#endif
TEST_F(PersistentPageConsistencyCheckTaskTest,
       MAYBE_ClearExpiredPersistentPages) {}

#if BUILDFLAG(IS_WIN)
#define MAYBE_ClearExpiredPersistentPagesByFilePath
#else
#define MAYBE_ClearExpiredPersistentPagesByFilePath
#endif
TEST_F(PersistentPageConsistencyCheckTaskTest,
       MAYBE_ClearExpiredPersistentPagesByFilePath) {}

}  // namespace offline_pages