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

Side by Side 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 unified diff | Download patch
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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_
7
8 #include <stdio.h>
9 #include <string>
10
11 #include "base/compiler_specific.h"
12
13 #if defined(WIN32)
14 #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.
15 #endif
16
17 namespace content {
18
19 inline bool IsASCIIAlpha(char ch) {
20 return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z';
21 }
22
23 inline bool IsNotASCIIAlpha(char ch) {
24 return !IsASCIIAlpha(ch);
25 }
26
27 std::string NormalizeLayoutTestURL(const std::string& url);
28
29 } // namespace content
30
31 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698