OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |