| 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 #ifndef COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/test_runner/test_runner_export.h" |
| 11 |
| 10 namespace test_runner { | 12 namespace test_runner { |
| 11 | 13 |
| 12 inline bool IsASCIIAlpha(char ch) { | 14 inline bool IsASCIIAlpha(char ch) { |
| 13 return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; | 15 return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; |
| 14 } | 16 } |
| 15 | 17 |
| 16 inline bool IsNotASCIIAlpha(char ch) { | 18 inline bool IsNotASCIIAlpha(char ch) { |
| 17 return !IsASCIIAlpha(ch); | 19 return !IsASCIIAlpha(ch); |
| 18 } | 20 } |
| 19 | 21 |
| 20 std::string NormalizeLayoutTestURL(const std::string& url); | 22 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url); |
| 21 | 23 |
| 22 } // namespace test_runner | 24 } // namespace test_runner |
| 23 | 25 |
| 24 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ | 26 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ |
| OLD | NEW |