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

Unified Diff: content/shell/renderer/test_runner/test_common.h

Issue 436133002: Migrate TestCommon to Chromium c++ style and remove un-used header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months 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/test_common.h
diff --git a/content/shell/renderer/test_runner/test_common.h b/content/shell/renderer/test_runner/test_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..dfd02a2a37dd3da7ee5fdeeec5eccf8d5db263ff
--- /dev/null
+++ b/content/shell/renderer/test_runner/test_common.h
@@ -0,0 +1,31 @@
+// 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_
+#define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_
+
+#include <stdio.h>
+#include <string>
+
+#include "base/compiler_specific.h"
+
+#if defined(WIN32)
+#define snprintf(str, size, ...) _snprintf_s(str, size, size, __VA_ARGS__)
jochen (gone - plz use gerrit) 2014/08/04 08:40:16 can you please replace the remaining callsites on
Abhishek 2014/08/04 15:17:44 Done.
+#endif
+
+namespace content {
+
+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);
+
+} // namespace content
+
+#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_

Powered by Google App Engine
This is Rietveld 408576698