#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) { … }
TEST_F(OfflinerClientTest, StopWithNoRequest) { … }
TEST_F(OfflinerClientTest, LoadAndSave) { … }
TEST_F(OfflinerClientTest, LoadAndSaveTimeout) { … }
TEST_F(OfflinerClientTest, StopInFlight) { … }
TEST_F(OfflinerClientTest, LoadAndSaveFailsWhileAlreadyActive) { … }
}
}