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

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

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Sync to ToT. Created 3 years, 9 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/public/test/test_content_client_initializer.h" 12 #include "content/public/test/test_content_client_initializer.h"
13 #include "content/public/test/test_renderer_host.h" 13 #include "content/public/test/test_renderer_host.h"
14 #include "extensions/browser/mock_extension_system.h" 14 #include "extensions/browser/mock_extension_system.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace content { 17 namespace content {
18 class BrowserContext; 18 class BrowserContext;
19 class ContentBrowserClient;
19 class ContentUtilityClient; 20 class ContentUtilityClient;
20 class RenderViewHostTestEnabler; 21 class RenderViewHostTestEnabler;
21 } 22 }
22 23
23 namespace extensions { 24 namespace extensions {
24 class TestExtensionsBrowserClient; 25 class TestExtensionsBrowserClient;
25 26
26 // Base class for extensions module unit tests of browser process code. Sets up 27 // Base class for extensions module unit tests of browser process code. Sets up
27 // the content module and extensions module client interfaces. Initializes 28 // the content module and extensions module client interfaces. Initializes
28 // services for a browser context. 29 // services for a browser context.
(...skipping 16 matching lines...) Expand all
45 TestExtensionsBrowserClient* extensions_browser_client() { 46 TestExtensionsBrowserClient* extensions_browser_client() {
46 return extensions_browser_client_.get(); 47 return extensions_browser_client_.get();
47 } 48 }
48 49
49 // testing::Test overrides: 50 // testing::Test overrides:
50 void SetUp() override; 51 void SetUp() override;
51 void TearDown() override; 52 void TearDown() override;
52 53
53 private: 54 private:
54 content::TestContentClientInitializer content_client_initializer_; 55 content::TestContentClientInitializer content_client_initializer_;
56 std::unique_ptr<content::ContentBrowserClient> content_browser_client_;
55 std::unique_ptr<content::ContentUtilityClient> content_utility_client_; 57 std::unique_ptr<content::ContentUtilityClient> content_utility_client_;
56 std::unique_ptr<content::BrowserContext> browser_context_; 58 std::unique_ptr<content::BrowserContext> browser_context_;
57 std::unique_ptr<TestExtensionsBrowserClient> extensions_browser_client_; 59 std::unique_ptr<TestExtensionsBrowserClient> extensions_browser_client_;
58 60
59 // The existence of this object enables tests via 61 // The existence of this object enables tests via
60 // RenderViewHostTester. 62 // RenderViewHostTester.
61 content::RenderViewHostTestEnabler rvh_test_enabler_; 63 content::RenderViewHostTestEnabler rvh_test_enabler_;
62 64
63 MockExtensionSystemFactory<MockExtensionSystem> extension_system_factory_; 65 MockExtensionSystemFactory<MockExtensionSystem> extension_system_factory_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); 67 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest);
66 }; 68 };
67 69
68 } // namespace extensions 70 } // namespace extensions
69 71
70 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ 72 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698