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 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
20 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
22 #include "content/public/browser/browser_main_runner.h" | 22 #include "content/public/browser/browser_main_runner.h" |
23 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
24 #include "content/shell/browser/layout_test/blink_test_controller.h" | 24 #include "content/shell/browser/layout_test/blink_test_controller.h" |
25 #include "content/shell/browser/layout_test/test_info_extractor.h" | 25 #include "content/shell/browser/layout_test/test_info_extractor.h" |
26 #include "content/shell/browser/shell.h" | 26 #include "content/shell/browser/shell.h" |
| 27 #include "content/shell/common/layout_test/layout_test_switches.h" |
27 #include "content/shell/common/shell_switches.h" | 28 #include "content/shell/common/shell_switches.h" |
28 #include "content/shell/renderer/layout_test/blink_test_helpers.h" | 29 #include "content/shell/renderer/layout_test/blink_test_helpers.h" |
29 #include "net/base/filename_util.h" | 30 #include "net/base/filename_util.h" |
30 | 31 |
31 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
32 #include "base/run_loop.h" | 33 #include "base/run_loop.h" |
33 #include "content/shell/browser/layout_test/layout_test_android.h" | 34 #include "content/shell/browser/layout_test/layout_test_android.h" |
34 #endif | 35 #endif |
35 | 36 |
36 namespace { | 37 namespace { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 141 } |
141 | 142 |
142 exit_code = RunTests(main_runner); | 143 exit_code = RunTests(main_runner); |
143 | 144 |
144 #if !defined(OS_ANDROID) | 145 #if !defined(OS_ANDROID) |
145 main_runner->Shutdown(); | 146 main_runner->Shutdown(); |
146 #endif | 147 #endif |
147 | 148 |
148 return exit_code; | 149 return exit_code; |
149 } | 150 } |
OLD | NEW |