#include "components/offline_pages/core/snapshot_controller.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/time/time.h"
#include "components/offline_pages/core/offline_page_feature.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
class SnapshotControllerTest : public testing::Test,
public SnapshotController::Client { … };
SnapshotControllerTest::SnapshotControllerTest()
: … { … }
SnapshotControllerTest::~SnapshotControllerTest() { … }
void SnapshotControllerTest::SetUp() { … }
void SnapshotControllerTest::TearDown() { … }
void SnapshotControllerTest::StartSnapshot() { … }
void SnapshotControllerTest::PumpLoop() { … }
void SnapshotControllerTest::FastForwardBy(base::TimeDelta delta) { … }
TEST_F(SnapshotControllerTest, OnLoad) { … }
TEST_F(SnapshotControllerTest, OnDocumentAvailable) { … }
TEST_F(SnapshotControllerTest, OnLoadSnapshotIsTheLastOne) { … }
TEST_F(SnapshotControllerTest, OnLoadSnapshotAfterLongDelay) { … }
TEST_F(SnapshotControllerTest, Stop) { … }
TEST_F(SnapshotControllerTest, ClientReset) { … }
TEST_F(SnapshotControllerTest, ClientResetWhileSnapshotting) { … }
}