| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/browser/layout_test/layout_test_browser_main.h" | 5 #include "content/shell/browser/layout_test/layout_test_browser_main.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); | 139 FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); |
| 140 main_runner->Run(); | 140 main_runner->Run(); |
| 141 content::Shell::CloseAllWindows(); | 141 content::Shell::CloseAllWindows(); |
| 142 main_runner->Shutdown(); | 142 main_runner->Shutdown(); |
| 143 return 0; | 143 return 0; |
| 144 } | 144 } |
| 145 | 145 |
| 146 exit_code = RunTests(main_runner); | 146 exit_code = RunTests(main_runner); |
| 147 base::RunLoop().RunUntilIdle(); | 147 base::RunLoop().RunUntilIdle(); |
| 148 | 148 |
| 149 content::Shell::CloseAllWindows(); |
| 149 #if !defined(OS_ANDROID) | 150 #if !defined(OS_ANDROID) |
| 150 main_runner->Shutdown(); | 151 main_runner->Shutdown(); |
| 151 #endif | 152 #endif |
| 152 | 153 |
| 153 return exit_code; | 154 return exit_code; |
| 154 } | 155 } |
| OLD | NEW |