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

Side by Side Diff: content/public/test/content_browser_test.cc

Issue 340413002: Fixes content_browsertests with --enable-text-input-focus-manager flag enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/public/test/content_browser_test.h" 5 #include "content/public/test/content_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 setup_called_ = true; 98 setup_called_ = true;
99 99
100 BrowserTestBase::SetUp(); 100 BrowserTestBase::SetUp();
101 } 101 }
102 102
103 void ContentBrowserTest::TearDown() { 103 void ContentBrowserTest::TearDown() {
104 BrowserTestBase::TearDown(); 104 BrowserTestBase::TearDown();
105 105
106 // LinuxInputMethodContextFactory has to be shutdown. 106 // LinuxInputMethodContextFactory has to be shutdown.
107 #if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(USE_X11) 107 #if !defined(OS_CHROMEOS) && defined(OS_LINUX)
sky 2014/06/19 20:14:06 Can you investigate who added the USE_X11 bits her
Yuki 2014/06/20 01:30:50 Please see line 94 and 107 at http://src.chromium.
108 ui::ShutdownInputMethodForTesting(); 108 ui::ShutdownInputMethodForTesting();
109 #endif 109 #endif
110 110
111 #if defined(OS_ANDROID) 111 #if defined(OS_ANDROID)
112 shell_main_delegate_.reset(); 112 shell_main_delegate_.reset();
113 #endif 113 #endif
114 } 114 }
115 115
116 void ContentBrowserTest::RunTestOnMainThreadLoop() { 116 void ContentBrowserTest::RunTestOnMainThreadLoop() {
117 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { 117 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { 166 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() {
167 return Shell::CreateNewWindow( 167 return Shell::CreateNewWindow(
168 ShellContentBrowserClient::Get()->off_the_record_browser_context(), 168 ShellContentBrowserClient::Get()->off_the_record_browser_context(),
169 GURL(url::kAboutBlankURL), 169 GURL(url::kAboutBlankURL),
170 NULL, 170 NULL,
171 MSG_ROUTING_NONE, 171 MSG_ROUTING_NONE,
172 gfx::Size()); 172 gfx::Size());
173 } 173 }
174 174
175 } // namespace content 175 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698