chromium/chrome/browser/offline_pages/test_request_coordinator_builder.h

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_OFFLINE_PAGES_TEST_REQUEST_COORDINATOR_BUILDER_H_
#define CHROME_BROWSER_OFFLINE_PAGES_TEST_REQUEST_COORDINATOR_BUILDER_H_

#include <memory>

class KeyedService;

namespace content {
class BrowserContext;
}

namespace offline_pages {

// Helper function to be used with
// BrowserContextKeyedServiceFactory::SetTestingFactory() that returns a
// RequestCoordinator object with mocked store.
std::unique_ptr<KeyedService> BuildTestRequestCoordinator(
    content::BrowserContext* context);

}  // namespace offline_pages

#endif  // CHROME_BROWSER_OFFLINE_PAGES_TEST_REQUEST_COORDINATOR_BUILDER_H_