#include "components/offline_pages/core/archive_manager.h"
#include <algorithm>
#include <memory>
#include <set>
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/system/sys_info.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
enum class CallbackStatus { … };
class ArchiveManagerTest : public testing::Test { … };
ArchiveManagerTest::ArchiveManagerTest()
: … { … }
void ArchiveManagerTest::SetUp() { … }
void ArchiveManagerTest::PumpLoop() { … }
void ArchiveManagerTest::ResetResults() { … }
void ArchiveManagerTest::ResetManager(
const base::FilePath& temporary_dir,
const base::FilePath& private_archive_dir,
const base::FilePath& public_archive_dir) { … }
void ArchiveManagerTest::Callback(bool result) { … }
void ArchiveManagerTest::GetStorageStatsCallback(
const ArchiveManager::StorageStats& storage_sizes) { … }
TEST_F(ArchiveManagerTest, EnsureArchivesDirCreated) { … }
TEST_F(ArchiveManagerTest, GetStorageStats) { … }
TEST_F(ArchiveManagerTest, TryWithInvalidTemporaryPath) { … }
TEST_F(ArchiveManagerTest, TryWithInvalidPublicPath) { … }
}