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

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

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « ui/views/test/webview_test_helper.h ('k') | webkit/glue/webkitplatformsupport_impl.h » ('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 #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/test_browser_thread.h" 8 #include "content/public/test/test_browser_thread.h"
9 #include "content/public/test/test_content_client_initializer.h" 9 #include "content/public/test/test_content_client_initializer.h"
10 #include "ui/views/controls/webview/webview.h" 10 #include "ui/views/controls/webview/webview.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 WebViewTestHelper::WebViewTestHelper(MessageLoopForUI* ui_loop) { 14 WebViewTestHelper::WebViewTestHelper(base::MessageLoopForUI* ui_loop) {
15 test_content_client_initializer_.reset( 15 test_content_client_initializer_.reset(
16 new content::TestContentClientInitializer); 16 new content::TestContentClientInitializer);
17 17
18 // Setup to register a new RenderViewHost factory which manufactures 18 // Setup to register a new RenderViewHost factory which manufactures
19 // mock render process hosts. This ensures that we never create a 'real' 19 // mock render process hosts. This ensures that we never create a 'real'
20 // render view host since support for it doesn't exist in unit tests. 20 // render view host since support for it doesn't exist in unit tests.
21 test_content_client_initializer_->CreateTestRenderViewHosts(); 21 test_content_client_initializer_->CreateTestRenderViewHosts();
22 22
23 ui_thread_.reset( 23 ui_thread_.reset(
24 new content::TestBrowserThread(content::BrowserThread::UI, ui_loop)); 24 new content::TestBrowserThread(content::BrowserThread::UI, ui_loop));
25 } 25 }
26 26
27 WebViewTestHelper::~WebViewTestHelper() { 27 WebViewTestHelper::~WebViewTestHelper() {
28 } 28 }
29 29
30 } // namespace views 30 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/webview_test_helper.h ('k') | webkit/glue/webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698