chromium/components/offline_pages/core/background/offliner_client_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/background/offliner_client.h"

#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/mock_callback.h"
#include "base/test/test_mock_time_task_runner.h"
#include "components/offline_pages/core/background/offliner_stub.h"
#include "components/offline_pages/core/background/save_page_request.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace offline_pages {
namespace {
_;

MockCompleteCallback;

MockProgressCallback;

const base::TimeDelta kOneMinute =;

SavePageRequest TestRequest() {}

class OfflinerClientTest : public testing::Test {};

TEST_F(OfflinerClientTest, NoRequests) {}

// Call Stop() when the offliner is not active. It should do nothing.
TEST_F(OfflinerClientTest, StopWithNoRequest) {}

TEST_F(OfflinerClientTest, LoadAndSave) {}

TEST_F(OfflinerClientTest, LoadAndSaveTimeout) {}

TEST_F(OfflinerClientTest, StopInFlight) {}

TEST_F(OfflinerClientTest, LoadAndSaveFailsWhileAlreadyActive) {}

}  // namespace
}  // namespace offline_pages