// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TestCommon_h #define TestCommon_h #include #include #include "base/compiler_specific.h" #include "third_party/WebKit/public/platform/WebCommon.h" #if defined(WIN32) #define snprintf(str, size, ...) _snprintf_s(str, size, size, __VA_ARGS__) #endif namespace WebTestRunner { inline bool isASCIIAlpha(char ch) { return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; } inline bool isNotASCIIAlpha(char ch) { return !isASCIIAlpha(ch); } std::string normalizeLayoutTestURL(const std::string& url); } #endif // TestCommon_h