| 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 "base/test/launcher/test_launcher.h" | 5 #include "base/test/launcher/test_launcher.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
| 15 #include "base/macros.h" |
| 15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 16 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 17 #include "base/process/launch.h" | 18 #include "base/process/launch.h" |
| 18 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 19 #include "base/test/launcher/unit_test_launcher.h" | 20 #include "base/test/launcher/unit_test_launcher.h" |
| 20 #include "base/test/test_switches.h" | 21 #include "base/test/test_switches.h" |
| 21 #include "base/test/test_timeouts.h" | 22 #include "base/test/test_timeouts.h" |
| 22 | 23 |
| 23 namespace { | 24 namespace { |
| 24 | 25 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Force one job since we can't run multiple simulators in parallel. | 179 // Force one job since we can't run multiple simulators in parallel. |
| 179 base::TestLauncher launcher(&delegate, 1); | 180 base::TestLauncher launcher(&delegate, 1); |
| 180 bool success = launcher.Run(); | 181 bool success = launcher.Run(); |
| 181 | 182 |
| 182 fprintf(stdout, "Tests took %" PRId64 " seconds.\n", | 183 fprintf(stdout, "Tests took %" PRId64 " seconds.\n", |
| 183 (base::TimeTicks::Now() - start_time).InSeconds()); | 184 (base::TimeTicks::Now() - start_time).InSeconds()); |
| 184 fflush(stdout); | 185 fflush(stdout); |
| 185 | 186 |
| 186 return (success ? 0 : 1); | 187 return (success ? 0 : 1); |
| 187 } | 188 } |
| OLD | NEW |