chromium/chrome/browser/offline_pages/test_offline_page_model_builder.h

// Copyright 2015 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_OFFLINE_PAGE_MODEL_BUILDER_H_
#define CHROME_BROWSER_OFFLINE_PAGES_TEST_OFFLINE_PAGE_MODEL_BUILDER_H_

#include <memory>

class KeyedService;
class SimpleFactoryKey;

namespace offline_pages {

// Helper function to be used with
// SimpleKeyedServiceFactory::SetTestingFactory() that returns a
// OfflinePageModel object with mocked store.
std::unique_ptr<KeyedService> BuildTestOfflinePageModel(SimpleFactoryKey* key);

}  // namespace offline_pages

#endif  // CHROME_BROWSER_OFFLINE_PAGES_TEST_OFFLINE_PAGE_MODEL_BUILDER_H_