Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: content/shell/renderer/test_runner/TestCommon.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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.
4
5 #ifndef TestCommon_h
6 #define TestCommon_h
7
8 #include <stdio.h>
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "third_party/WebKit/public/platform/WebCommon.h"
13
14 #if defined(WIN32)
15 #define snprintf(str, size, ...) _snprintf_s(str, size, size, __VA_ARGS__)
16 #endif
17
18 namespace WebTestRunner {
19
20 inline bool isASCIIAlpha(char ch) { return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; }
21
22 inline bool isNotASCIIAlpha(char ch) { return !isASCIIAlpha(ch); }
23
24 std::string normalizeLayoutTestURL(const std::string& url);
25
26 }
27
28 #endif // TestCommon_h
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/SpellCheckClient.cpp ('k') | content/shell/renderer/test_runner/TestCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698