Chromium Code Reviews| Index: chrome/browser/android/offline_pages/test_offline_page_model_builder.h |
| diff --git a/chrome/browser/android/offline_pages/test_offline_page_model_builder.h b/chrome/browser/android/offline_pages/test_offline_page_model_builder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5fcd727c778e91e4704b76f1f8841c054c3d7217 |
| --- /dev/null |
| +++ b/chrome/browser/android/offline_pages/test_offline_page_model_builder.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_TEST_OFFLINE_PAGE_MODEL_BUILDER_H_ |
| +#define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_TEST_OFFLINE_PAGE_MODEL_BUILDER_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +class KeyedService; |
| + |
| +namespace content { |
| +class BrowserContext; |
| +} |
| + |
| +namespace offline_pages { |
| + |
| +// Helper function to be used with |
| +// BrowserContextKeyedServiceFactory::SetTestingFactory() that returns a |
| +// OfflinePageModel object with mocked store. |
| +scoped_ptr<KeyedService> BuildTestOfflinePageModel( |
| + content::BrowserContext* context); |
|
jianli
2015/12/15 01:45:24
nit: empty line
fgorski
2015/12/15 16:33:02
Done.
|
| +} // namespace offline_pages |
| + |
| +#endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_TEST_OFFLINE_PAGE_MODEL_BUILDER_H_ |