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/browser/frame_host/frame_tree.h" | 5 #include "content/browser/frame_host/frame_tree.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
8 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
9 #include "content/browser/frame_host/navigator_impl.h" | 12 #include "content/browser/frame_host/navigator_impl.h" |
10 #include "content/browser/frame_host/render_frame_host_factory.h" | 13 #include "content/browser/frame_host/render_frame_host_factory.h" |
11 #include "content/browser/frame_host/render_frame_host_impl.h" | 14 #include "content/browser/frame_host/render_frame_host_impl.h" |
12 #include "content/browser/renderer_host/render_view_host_impl.h" | 15 #include "content/browser/renderer_host/render_view_host_impl.h" |
13 #include "content/browser/web_contents/web_contents_impl.h" | 16 #include "content/browser/web_contents/web_contents_impl.h" |
14 #include "content/common/frame_messages.h" | 17 #include "content/common/frame_messages.h" |
15 #include "content/public/browser/web_contents_observer.h" | 18 #include "content/public/browser/web_contents_observer.h" |
16 #include "content/public/test/mock_render_process_host.h" | 19 #include "content/public/test/mock_render_process_host.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 // Crash the renderer. | 456 // Crash the renderer. |
454 main_test_rfh()->GetProcess()->SimulateCrash(); | 457 main_test_rfh()->GetProcess()->SimulateCrash(); |
455 | 458 |
456 // Ensure they cannot be found by id after the process has crashed. | 459 // Ensure they cannot be found by id after the process has crashed. |
457 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id1)); | 460 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id1)); |
458 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id2)); | 461 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id2)); |
459 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id3)); | 462 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id3)); |
460 } | 463 } |
461 | 464 |
462 } // namespace content | 465 } // namespace content |
OLD | NEW |