| OLD | NEW |
| 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 Loading... |
| 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) |
| 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 Loading... |
| 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 |
| OLD | NEW |