| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_TEST_BROWSER_CONTEXT_H_ | |
| 6 #define EXTENSIONS_COMMON_EXTENSIONS_TEST_BROWSER_CONTEXT_H_ | |
| 7 | |
| 8 #include "content/public/test/test_browser_context.h" | |
| 9 #include "extensions/browser/test_extensions_browser_client.h" | |
| 10 | |
| 11 namespace extensions { | |
| 12 | |
| 13 // An implementation of BrowserContext used for extension testing. It will set | |
| 14 // necessary extension state like the ExtensionsBrowserClient and any keyed | |
| 15 // services, and cleans up after itself on destruction. | |
| 16 class ExtensionsTestBrowserContext : public content::TestBrowserContext { | |
| 17 public: | |
| 18 ExtensionsTestBrowserContext(); | |
| 19 virtual ~ExtensionsTestBrowserContext(); | |
| 20 | |
| 21 private: | |
| 22 TestExtensionsBrowserClient extensions_browser_client_; | |
| 23 | |
| 24 DISALLOW_COPY_AND_ASSIGN(ExtensionsTestBrowserContext); | |
| 25 }; | |
| 26 | |
| 27 } // namespace extensions | |
| 28 | |
| 29 #endif // EXTENSIONS_COMMON_EXTENSIONS_TEST_BROWSER_CONTEXT_H_ | |
| OLD | NEW |