OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/webkit_test_controller.h" | 5 #include "content/shell/browser/webkit_test_controller.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 } | 670 } |
671 | 671 |
672 void WebKitTestController::OnLeakDetectionDone( | 672 void WebKitTestController::OnLeakDetectionDone( |
673 const LeakDetectionResult& result) { | 673 const LeakDetectionResult& result) { |
674 if (!result.leaked) { | 674 if (!result.leaked) { |
675 base::MessageLoop::current()->PostTask(FROM_HERE, | 675 base::MessageLoop::current()->PostTask(FROM_HERE, |
676 base::MessageLoop::QuitClosure()); | 676 base::MessageLoop::QuitClosure()); |
677 return; | 677 return; |
678 } | 678 } |
679 | 679 |
680 printer_->AddErrorMessage("#LEAK"); | |
681 printer_->AddErrorMessage( | 680 printer_->AddErrorMessage( |
682 base::StringPrintf(" Number of live documents: %d", | 681 base::StringPrintf("#LEAK - renderer pid %d (%s)", current_pid_, |
683 result.number_of_live_documents)); | 682 result.detail.c_str())); |
684 printer_->AddErrorMessage( | |
685 base::StringPrintf(" Number of live nodes: %d", | |
686 result.number_of_live_nodes)); | |
687 DiscardMainWindow(); | 683 DiscardMainWindow(); |
688 } | 684 } |
689 | 685 |
690 } // namespace content | 686 } // namespace content |
OLD | NEW |