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

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

Issue 264003003: test_runner: Move everything else into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTCOMMON_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTCOMMON_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTCOMMON_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTCOMMON_H_
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 12
13 #if defined(WIN32) 13 #if defined(WIN32)
14 #define snprintf(str, size, ...) _snprintf_s(str, size, size, __VA_ARGS__) 14 #define snprintf(str, size, ...) _snprintf_s(str, size, size, __VA_ARGS__)
15 #endif 15 #endif
16 16
17 namespace WebTestRunner { 17 namespace content {
18 18
19 inline bool isASCIIAlpha(char ch) { return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; } 19 inline bool isASCIIAlpha(char ch) { return (ch | 0x20) >= 'a' && (ch | 0x20) <= 'z'; }
20 20
21 inline bool isNotASCIIAlpha(char ch) { return !isASCIIAlpha(ch); } 21 inline bool isNotASCIIAlpha(char ch) { return !isASCIIAlpha(ch); }
22 22
23 std::string normalizeLayoutTestURL(const std::string& url); 23 std::string normalizeLayoutTestURL(const std::string& url);
24 24
25 } 25 } // namespace content
26 26
27 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTCOMMON_H_ 27 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_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