| OLD | NEW |
| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url); | 28 TEST_RUNNER_EXPORT std::string NormalizeLayoutTestURL(const std::string& url); |
| 29 | 29 |
| 30 std::string URLDescription(const GURL& url); | 30 std::string URLDescription(const GURL& url); |
| 31 const char* WebNavigationPolicyToString( | 31 const char* WebNavigationPolicyToString( |
| 32 const blink::WebNavigationPolicy& policy); | 32 const blink::WebNavigationPolicy& policy); |
| 33 | 33 |
| 34 blink::WebString V8StringToWebString(v8::Local<v8::String> v8_str); | 34 blink::WebString V8StringToWebString(v8::Local<v8::String> v8_str); |
| 35 | 35 |
| 36 // Tests which depend on Blink must call this function on the main thread | |
| 37 // before creating/calling any Blink objects/APIs. | |
| 38 TEST_RUNNER_EXPORT void EnsureBlinkInitialized(); | |
| 39 | |
| 40 } // namespace test_runner | 36 } // namespace test_runner |
| 41 | 37 |
| 42 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ | 38 #endif // COMPONENTS_TEST_RUNNER_TEST_COMMON_H_ |
| OLD | NEW |