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

Side by Side Diff: chrome/test/base/chrome_render_view_test.h

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/browser_tests_main.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | 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 CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/renderer/chrome_content_renderer_client.h"
11 #include "chrome/renderer/chrome_mock_render_thread.h" 10 #include "chrome/renderer/chrome_mock_render_thread.h"
12 #include "content/public/test/render_view_test.h" 11 #include "content/public/test/render_view_test.h"
13 12
14 namespace autofill { 13 namespace autofill {
15 class AutofillAgent; 14 class AutofillAgent;
16 class TestPasswordAutofillAgent; 15 class TestPasswordAutofillAgent;
17 class TestPasswordGenerationAgent; 16 class TestPasswordGenerationAgent;
18 } 17 }
19 18
20 namespace extensions { 19 namespace extensions {
21 class Dispatcher; 20 class Dispatcher;
22 } 21 }
23 22
24 class ChromeRenderViewTest : public content::RenderViewTest { 23 class ChromeRenderViewTest : public content::RenderViewTest {
25 public: 24 public:
26 ChromeRenderViewTest(); 25 ChromeRenderViewTest();
27 virtual ~ChromeRenderViewTest(); 26 virtual ~ChromeRenderViewTest();
28 27
29 protected: 28 protected:
30 // testing::Test 29 // testing::Test
31 virtual void SetUp() OVERRIDE; 30 virtual void SetUp() OVERRIDE;
32 virtual void TearDown() OVERRIDE; 31 virtual void TearDown() OVERRIDE;
32 virtual content::ContentClient* CreateContentClient() OVERRIDE;
33 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
34 virtual content::ContentRendererClient*
35 CreateContentRendererClient() OVERRIDE;
33 36
34 ChromeContentRendererClient chrome_content_renderer_client_;
35 extensions::Dispatcher* extension_dispatcher_; 37 extensions::Dispatcher* extension_dispatcher_;
36 38
37 autofill::TestPasswordAutofillAgent* password_autofill_; 39 autofill::TestPasswordAutofillAgent* password_autofill_;
38 autofill::TestPasswordGenerationAgent* password_generation_; 40 autofill::TestPasswordGenerationAgent* password_generation_;
39 autofill::AutofillAgent* autofill_agent_; 41 autofill::AutofillAgent* autofill_agent_;
40 42
41 // Naked pointer as ownership is with content::RenderViewTest::render_thread_. 43 // Naked pointer as ownership is with content::RenderViewTest::render_thread_.
42 ChromeMockRenderThread* chrome_render_thread_; 44 ChromeMockRenderThread* chrome_render_thread_;
43 }; 45 };
44 46
45 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 47 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/base/browser_tests_main.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698