| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 Shell::CloseAllWindows(); | 156 Shell::CloseAllWindows(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 Shell* ContentBrowserTest::CreateBrowser() { | 159 Shell* ContentBrowserTest::CreateBrowser() { |
| 160 return Shell::CreateNewWindow( | 160 return Shell::CreateNewWindow( |
| 161 ShellContentBrowserClient::Get()->browser_context(), | 161 ShellContentBrowserClient::Get()->browser_context(), |
| 162 GURL(url::kAboutBlankURL), | 162 GURL(url::kAboutBlankURL), |
| 163 NULL, | 163 NULL, |
| 164 MSG_ROUTING_NONE, | |
| 165 gfx::Size()); | 164 gfx::Size()); |
| 166 } | 165 } |
| 167 | 166 |
| 168 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { | 167 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { |
| 169 return Shell::CreateNewWindow( | 168 return Shell::CreateNewWindow( |
| 170 ShellContentBrowserClient::Get()->off_the_record_browser_context(), | 169 ShellContentBrowserClient::Get()->off_the_record_browser_context(), |
| 171 GURL(url::kAboutBlankURL), | 170 GURL(url::kAboutBlankURL), |
| 172 NULL, | 171 NULL, |
| 173 MSG_ROUTING_NONE, | |
| 174 gfx::Size()); | 172 gfx::Size()); |
| 175 } | 173 } |
| 176 | 174 |
| 177 } // namespace content | 175 } // namespace content |
| OLD | NEW |