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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

Issue 185263006: Move TestRunner from CppVariable to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bug fix: text_runner -> test_runner in gypi :-( Created 6 years, 9 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 | « content/shell/renderer/test_runner/text_input_controller.h ('k') | gin/arguments.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/webkit_test_runner.cc
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index 48a979b2795defd5510be732fcf97b073e114640..258b79ab2a126f583953437f44c04e6ccec54644 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -631,12 +631,8 @@ void WebKitTestRunner::CaptureDump() {
ShellRenderProcessObserver::GetInstance()->test_interfaces();
if (interfaces->testRunner()->shouldDumpAsAudio()) {
- const WebArrayBufferView* audio_data =
- interfaces->testRunner()->audioData();
- std::vector<unsigned char> vector_data(
- static_cast<const unsigned char*>(audio_data->baseAddress()),
- static_cast<const unsigned char*>(audio_data->baseAddress()) +
- audio_data->byteLength());
+ std::vector<unsigned char> vector_data;
+ interfaces->testRunner()->getAudioData(&vector_data);
Send(new ShellViewHostMsg_AudioDump(routing_id(), vector_data));
} else {
Send(new ShellViewHostMsg_TextDump(routing_id(),
« no previous file with comments | « content/shell/renderer/test_runner/text_input_controller.h ('k') | gin/arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698