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/layout_test/blink_test_controller.h" | 5 #include "content/shell/browser/layout_test/blink_test_controller.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <iostream> | 9 #include <iostream> |
10 #include <set> | 10 #include <set> |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 DCHECK(insertion_took_place); | 727 DCHECK(insertion_took_place); |
728 | 728 |
729 // See if we need to wait for more responses. | 729 // See if we need to wait for more responses. |
730 pending_layout_dumps_--; | 730 pending_layout_dumps_--; |
731 DCHECK_LE(0, pending_layout_dumps_); | 731 DCHECK_LE(0, pending_layout_dumps_); |
732 if (pending_layout_dumps_ > 0) | 732 if (pending_layout_dumps_ > 0) |
733 return; | 733 return; |
734 | 734 |
735 // Stitch the frame-specific results in the right order. | 735 // Stitch the frame-specific results in the right order. |
736 std::string stitched_layout_dump; | 736 std::string stitched_layout_dump; |
737 for (const auto& render_frame_host : web_contents()->GetAllFrames()) { | 737 for (auto* render_frame_host : web_contents()->GetAllFrames()) { |
738 auto it = | 738 auto it = |
739 frame_to_layout_dump_map_.find(render_frame_host->GetFrameTreeNodeId()); | 739 frame_to_layout_dump_map_.find(render_frame_host->GetFrameTreeNodeId()); |
740 if (it != frame_to_layout_dump_map_.end()) { | 740 if (it != frame_to_layout_dump_map_.end()) { |
741 const std::string& dump = it->second; | 741 const std::string& dump = it->second; |
742 stitched_layout_dump.append(dump); | 742 stitched_layout_dump.append(dump); |
743 } | 743 } |
744 } | 744 } |
745 | 745 |
746 // Continue finishing the test. | 746 // Continue finishing the test. |
747 RenderViewHost* render_view_host = | 747 RenderViewHost* render_view_host = |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 } else { | 937 } else { |
938 printer_->AddErrorMessage(base::StringPrintf( | 938 printer_->AddErrorMessage(base::StringPrintf( |
939 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", | 939 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", |
940 event_name.c_str())); | 940 event_name.c_str())); |
941 return; | 941 return; |
942 } | 942 } |
943 bluetooth_chooser_factory_->SendEvent(event, argument); | 943 bluetooth_chooser_factory_->SendEvent(event, argument); |
944 } | 944 } |
945 | 945 |
946 } // namespace content | 946 } // namespace content |
OLD | NEW |