Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / components / test_runner / test_common.h
blob429f96916c392b53351f59c87528cc192b6eab02
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
8 #include <string>
10 #include "components/test_runner/test_runner_export.h"
12 namespace test_runner {
14 inline bool IsASCIIAlpha(char ch) {
15 return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z';
18 inline bool IsNotASCIIAlpha(char ch) {
19 return !IsASCIIAlpha(ch);
22 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url);
24 // Tests which depend on Blink must call this function on the main thread
25 // before creating/calling any Blink objects/APIs.
26 TEST_RUNNER_EXPORT void EnsureBlinkInitialized();
28 } // namespace test_runner
30 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_