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

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

Issue 1931833003: Moving TestRunnerForSpecificView into a separate compilation unit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 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
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/test_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "components/test_runner/test_runner_export.h" 11 #include "components/test_runner/test_runner_export.h"
12 #include "third_party/WebKit/public/platform/WebString.h"
12 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 13 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
14 #include "v8/include/v8.h"
13 15
14 class GURL; 16 class GURL;
15 17
16 namespace test_runner { 18 namespace test_runner {
17 19
18 inline bool IsASCIIAlpha(char ch) { 20 inline bool IsASCIIAlpha(char ch) {
19 return base::IsAsciiLower(ch | 0x20); 21 return base::IsAsciiLower(ch | 0x20);
20 } 22 }
21 23
22 inline bool IsNotASCIIAlpha(char ch) { 24 inline bool IsNotASCIIAlpha(char ch) {
23 return !IsASCIIAlpha(ch); 25 return !IsASCIIAlpha(ch);
24 } 26 }
25 27
26 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url); 28 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url);
27 29
28 std::string URLDescription(const GURL& url); 30 std::string URLDescription(const GURL& url);
29 const char* WebNavigationPolicyToString( 31 const char* WebNavigationPolicyToString(
30 const blink::WebNavigationPolicy& policy); 32 const blink::WebNavigationPolicy& policy);
31 33
34 blink::WebString V8StringToWebString(v8::Local<v8::String> v8_str);
35
32 // Tests which depend on Blink must call this function on the main thread 36 // Tests which depend on Blink must call this function on the main thread
33 // before creating/calling any Blink objects/APIs. 37 // before creating/calling any Blink objects/APIs.
34 TEST_RUNNER_EXPORT void EnsureBlinkInitialized(); 38 TEST_RUNNER_EXPORT void EnsureBlinkInitialized();
35 39
36 } // namespace test_runner 40 } // namespace test_runner
37 41
38 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ 42 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698