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

Side by Side Diff: content/shell/renderer/webkit_test_runner.cc

Issue 297513010: [abort] [do not submit] fiddle with test runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/shell/renderer/webkit_test_runner.h" 5 #include "content/shell/renderer/webkit_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 render_view()->SetWebkitPreferences(render_view()->GetWebkitPreferences()); 610 render_view()->SetWebkitPreferences(render_view()->GetWebkitPreferences());
611 } 611 }
612 612
613 // Private methods ----------------------------------------------------------- 613 // Private methods -----------------------------------------------------------
614 614
615 void WebKitTestRunner::CaptureDump() { 615 void WebKitTestRunner::CaptureDump() {
616 WebTestInterfaces* interfaces = 616 WebTestInterfaces* interfaces =
617 ShellRenderProcessObserver::GetInstance()->test_interfaces(); 617 ShellRenderProcessObserver::GetInstance()->test_interfaces();
618 TRACE_EVENT0("shell", "WebKitTestRunner::CaptureDump"); 618 TRACE_EVENT0("shell", "WebKitTestRunner::CaptureDump");
619 619
620 LOG(WARNING) << "WebKitTestRunner::CaptureDump";
621
620 if (interfaces->testRunner()->shouldDumpAsAudio()) { 622 if (interfaces->testRunner()->shouldDumpAsAudio()) {
621 std::vector<unsigned char> vector_data; 623 std::vector<unsigned char> vector_data;
622 interfaces->testRunner()->getAudioData(&vector_data); 624 interfaces->testRunner()->getAudioData(&vector_data);
623 Send(new ShellViewHostMsg_AudioDump(routing_id(), vector_data)); 625 Send(new ShellViewHostMsg_AudioDump(routing_id(), vector_data));
624 } else { 626 } else {
625 Send(new ShellViewHostMsg_TextDump(routing_id(), 627 Send(new ShellViewHostMsg_TextDump(routing_id(),
626 proxy()->CaptureTree(false))); 628 proxy()->CaptureTree(false)));
627 629
628 if (test_config_.enable_pixel_dumping && 630 if (test_config_.enable_pixel_dumping &&
629 interfaces->testRunner()->shouldGeneratePixelResults()) { 631 interfaces->testRunner()->shouldGeneratePixelResults()) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 720
719 leak_detector_->TryLeakDetection(main_frame); 721 leak_detector_->TryLeakDetection(main_frame);
720 } 722 }
721 723
722 void WebKitTestRunner::ReportLeakDetectionResult( 724 void WebKitTestRunner::ReportLeakDetectionResult(
723 const LeakDetectionResult& report) { 725 const LeakDetectionResult& report) {
724 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 726 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
725 } 727 }
726 728
727 } // namespace content 729 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698