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

Unified Diff: components/test_runner/test_common.cc

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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/test_common.h ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_common.cc
diff --git a/components/test_runner/test_common.cc b/components/test_runner/test_common.cc
index ecd58ea301b9ca2b70c86a72ea6c7e2c92a2efd7..c387440ff0760fc35c61f788b5286c1913911cd0 100644
--- a/components/test_runner/test_common.cc
+++ b/components/test_runner/test_common.cc
@@ -99,6 +99,13 @@ const char* WebNavigationPolicyToString(
}
}
+blink::WebString V8StringToWebString(v8::Local<v8::String> v8_str) {
+ int length = v8_str->Utf8Length() + 1;
+ std::unique_ptr<char[]> chars(new char[length]);
+ v8_str->WriteUtf8(chars.get(), length);
+ return blink::WebString::fromUTF8(chars.get());
+}
+
void EnsureBlinkInitialized() {
g_mock_blink_platform.Get();
}
« no previous file with comments | « components/test_runner/test_common.h ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698