| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/test_runner/test_info_extractor.h" | 5 #include "components/test_runner/test_info_extractor.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 15 #include "build/build_config.h" |
| 15 #include "net/base/filename_util.h" | 16 #include "net/base/filename_util.h" |
| 16 | 17 |
| 17 namespace test_runner { | 18 namespace test_runner { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
| 22 // On Android, all passed tests will be paths to a local temporary directory. | 23 // On Android, all passed tests will be paths to a local temporary directory. |
| 23 // However, because we can't transfer all test files to the device, translate | 24 // However, because we can't transfer all test files to the device, translate |
| 24 // those paths to a local, forwarded URL so the host can serve them. | 25 // those paths to a local, forwarded URL so the host can serve them. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 #endif | 140 #endif |
| 140 } | 141 } |
| 141 | 142 |
| 142 DCHECK(!test_string.empty()); | 143 DCHECK(!test_string.empty()); |
| 143 if (test_string == "QUIT") | 144 if (test_string == "QUIT") |
| 144 return nullptr; | 145 return nullptr; |
| 145 return GetTestInfoFromLayoutTestName(test_string); | 146 return GetTestInfoFromLayoutTestName(test_string); |
| 146 } | 147 } |
| 147 | 148 |
| 148 } // namespace test_runner | 149 } // namespace test_runner |
| OLD | NEW |