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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/TestCommon.h
diff --git a/content/shell/renderer/test_runner/TestCommon.h b/content/shell/renderer/test_runner/TestCommon.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e83c47a5c75079a15d806b7f4e5a3b39367126d
--- /dev/null
+++ b/content/shell/renderer/test_runner/TestCommon.h
@@ -0,0 +1,28 @@
+// 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 <stdio.h>
+#include <string>
+
+#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
« 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