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

Side by Side Diff: components/test_runner/test_common.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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 2014 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 COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
7
8 #include <string>
9
10 #include "base/strings/string_util.h"
11 #include "components/test_runner/test_runner_export.h"
12 #include "third_party/WebKit/public/platform/WebString.h"
13 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
14 #include "v8/include/v8.h"
15
16 class GURL;
17
18 namespace test_runner {
19
20 inline bool IsASCIIAlpha(char ch) {
21 return base::IsAsciiLower(ch | 0x20);
22 }
23
24 inline bool IsNotASCIIAlpha(char ch) {
25 return !IsASCIIAlpha(ch);
26 }
27
28 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url);
29
30 std::string URLDescription(const GURL& url);
31 const char* WebNavigationPolicyToString(
32 const blink::WebNavigationPolicy& policy);
33
34 blink::WebString V8StringToWebString(v8::Local<v8::String> v8_str);
35
36 } // namespace test_runner
37
38 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698