Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: extensions/browser/extensions_test_browser_context.h

Issue 355223002: Add ExtensionsTestBrowserContext class for test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make as member Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698