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

Side by Side Diff: content/public/test/test_content_client_initializer.h

Issue 11274038: content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win - part2 Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_TEST_TEST_CONTENT_CLIENT_INITIALIZER_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_CONTENT_CLIENT_INITIALIZER_
6 #define CONTENT_PUBLIC_TEST_TEST_CONTENT_CLIENT_INITIALIZER_ 6 #define CONTENT_PUBLIC_TEST_TEST_CONTENT_CLIENT_INITIALIZER_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 class NotificationServiceImpl;
12
13 namespace content { 11 namespace content {
14 12
15 class ContentClient; 13 class ContentClient;
16 class MockRenderProcessHostFactory; 14 class MockRenderProcessHostFactory;
15 class NotificationServiceImpl;
17 class TestContentBrowserClient; 16 class TestContentBrowserClient;
18 class TestRenderViewHostFactory; 17 class TestRenderViewHostFactory;
19 18
20 // Initializes various objects needed to run unit tests that use content:: 19 // Initializes various objects needed to run unit tests that use content::
21 // objects. Currently this includes setting up the notification service, 20 // objects. Currently this includes setting up the notification service,
22 // creating and setting the content client and the content browser client. 21 // creating and setting the content client and the content browser client.
23 class TestContentClientInitializer { 22 class TestContentClientInitializer {
24 public: 23 public:
25 TestContentClientInitializer(); 24 TestContentClientInitializer();
26 ~TestContentClientInitializer(); 25 ~TestContentClientInitializer();
27 26
28 // Enables switching RenderViewHost creation to use the test version instead 27 // Enables switching RenderViewHost creation to use the test version instead
29 // of the real implementation. This will last throughout the lifetime of this 28 // of the real implementation. This will last throughout the lifetime of this
30 // class. 29 // class.
31 void CreateTestRenderViewHosts(); 30 void CreateTestRenderViewHosts();
32 31
33 private: 32 private:
34 scoped_ptr<NotificationServiceImpl> notification_service_; 33 scoped_ptr<NotificationServiceImpl> notification_service_;
35 scoped_ptr<ContentClient> content_client_; 34 scoped_ptr<ContentClient> content_client_;
36 scoped_ptr<TestContentBrowserClient> content_browser_client_; 35 scoped_ptr<TestContentBrowserClient> content_browser_client_;
37 scoped_ptr<content::MockRenderProcessHostFactory> rph_factory_; 36 scoped_ptr<content::MockRenderProcessHostFactory> rph_factory_;
38 scoped_ptr<TestRenderViewHostFactory> test_render_view_host_factory_; 37 scoped_ptr<TestRenderViewHostFactory> test_render_view_host_factory_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(TestContentClientInitializer); 39 DISALLOW_COPY_AND_ASSIGN(TestContentClientInitializer);
41 }; 40 };
42 41
43 } // namespace content 42 } // namespace content
44 43
45 #endif // CONTENT_PUBLIC_TEST_TEST_CONTENT_CLIENT_INITIALIZER_ 44 #endif // CONTENT_PUBLIC_TEST_TEST_CONTENT_CLIENT_INITIALIZER_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698