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

Side by Side Diff: ui/views/test/webview_test_helper.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/test/webrtc_audio_device_test.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 #include "ui/views/test/webview_test_helper.h" 5 #include "ui/views/test/webview_test_helper.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "content/public/test/mock_render_process_host.h" 8 #include "content/public/test/mock_render_process_host.h"
9 #include "content/test/test_browser_thread.h" 9 #include "content/public/test/test_browser_thread.h"
10 #include "content/test/test_content_client_initializer.h" 10 #include "content/test/test_content_client_initializer.h"
11 #include "content/test/test_render_view_host_factory.h" 11 #include "content/test/test_render_view_host_factory.h"
12 #include "ui/views/controls/webview/webview.h" 12 #include "ui/views/controls/webview/webview.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 WebViewTestHelper::WebViewTestHelper(MessageLoopForUI* ui_loop) { 16 WebViewTestHelper::WebViewTestHelper(MessageLoopForUI* ui_loop) {
17 test_content_client_initializer_.reset( 17 test_content_client_initializer_.reset(
18 new content::TestContentClientInitializer); 18 new content::TestContentClientInitializer);
19 19
20 // Setup to register a new RenderViewHost factory which manufactures 20 // Setup to register a new RenderViewHost factory which manufactures
21 // mock render process hosts. This ensures that we never create a 'real' 21 // mock render process hosts. This ensures that we never create a 'real'
22 // render view host since support for it doesn't exist in unit tests. 22 // render view host since support for it doesn't exist in unit tests.
23 rph_factory_.reset(new content::MockRenderProcessHostFactory()); 23 rph_factory_.reset(new content::MockRenderProcessHostFactory());
24 rvh_factory_.reset( 24 rvh_factory_.reset(
25 new content::TestRenderViewHostFactory(rph_factory_.get())); 25 new content::TestRenderViewHostFactory(rph_factory_.get()));
26 26
27 ui_thread_.reset( 27 ui_thread_.reset(
28 new content::TestBrowserThread(content::BrowserThread::UI, ui_loop)); 28 new content::TestBrowserThread(content::BrowserThread::UI, ui_loop));
29 } 29 }
30 30
31 WebViewTestHelper::~WebViewTestHelper() { 31 WebViewTestHelper::~WebViewTestHelper() {
32 } 32 }
33 33
34 } // namespace views 34 } // namespace views
OLDNEW
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698