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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "content/browser/renderer_host/render_view_host_impl.h" | 7 #include "content/browser/renderer_host/render_view_host_impl.h" |
8 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
9 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
10 #include "content/browser/web_contents/frame_tree_node.h" | 10 #include "content/browser/web_contents/frame_tree_node.h" |
11 #include "content/browser/web_contents/interstitial_page_impl.h" | 11 #include "content/browser/web_contents/interstitial_page_impl.h" |
12 #include "content/browser/web_contents/navigation_entry_impl.h" | 12 #include "content/browser/web_contents/navigation_entry_impl.h" |
13 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 13 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
14 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
15 #include "content/public/browser/interstitial_page_delegate.h" | 15 #include "content/public/browser/interstitial_page_delegate.h" |
16 #include "content/public/browser/navigation_details.h" | 16 #include "content/public/browser/navigation_details.h" |
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2100 EXPECT_EQ(0UL, deep_tree->child_at(0)->child_at(0)->child_count()); | 2100 EXPECT_EQ(0UL, deep_tree->child_at(0)->child_at(0)->child_count()); |
2101 | 2101 |
2102 contents()->OnFrameDetached(16, 265); | 2102 contents()->OnFrameDetached(16, 265); |
2103 EXPECT_EQ(4UL, root->child_at(2)->child_count()); | 2103 EXPECT_EQ(4UL, root->child_at(2)->child_count()); |
2104 | 2104 |
2105 contents()->OnFrameDetached(5, 15); | 2105 contents()->OnFrameDetached(5, 15); |
2106 EXPECT_EQ(2UL, root->child_count()); | 2106 EXPECT_EQ(2UL, root->child_count()); |
2107 } | 2107 } |
2108 | 2108 |
2109 } // namespace content | 2109 } // namespace content |
OLD | NEW |