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 "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "content/browser/frame_host/navigator_impl.h" | 9 #include "content/browser/frame_host/navigator_impl.h" |
10 #include "content/browser/frame_host/render_frame_host_factory.h" | 10 #include "content/browser/frame_host/render_frame_host_factory.h" |
11 #include "content/browser/frame_host/render_frame_host_impl.h" | 11 #include "content/browser/frame_host/render_frame_host_impl.h" |
12 #include "content/browser/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
13 #include "content/browser/web_contents/web_contents_impl.h" | 13 #include "content/browser/web_contents/web_contents_impl.h" |
14 #include "content/common/frame_messages.h" | 14 #include "content/common/frame_messages.h" |
15 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
16 #include "content/public/common/site_isolation_policy.h" | |
nasko
2015/07/08 12:52:22
Why is this include needed?
ncarter (slow)
2015/07/10 23:29:18
Done.
| |
16 #include "content/public/test/mock_render_process_host.h" | 17 #include "content/public/test/mock_render_process_host.h" |
17 #include "content/public/test/test_browser_context.h" | 18 #include "content/public/test/test_browser_context.h" |
18 #include "content/public/test/test_browser_thread_bundle.h" | 19 #include "content/public/test/test_browser_thread_bundle.h" |
19 #include "content/test/test_render_frame_host.h" | 20 #include "content/test/test_render_frame_host.h" |
20 #include "content/test/test_render_view_host.h" | 21 #include "content/test/test_render_view_host.h" |
21 #include "content/test/test_web_contents.h" | 22 #include "content/test/test_web_contents.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "third_party/WebKit/public/web/WebSandboxFlags.h" | 24 #include "third_party/WebKit/public/web/WebSandboxFlags.h" |
24 | 25 |
25 namespace content { | 26 namespace content { |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
420 // Crash the renderer. | 421 // Crash the renderer. |
421 main_test_rfh()->GetProcess()->SimulateCrash(); | 422 main_test_rfh()->GetProcess()->SimulateCrash(); |
422 | 423 |
423 // Ensure they cannot be found by id after the process has crashed. | 424 // Ensure they cannot be found by id after the process has crashed. |
424 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id1)); | 425 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id1)); |
425 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id2)); | 426 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id2)); |
426 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id3)); | 427 EXPECT_FALSE(FrameTreeNode::GloballyFindByID(id3)); |
427 } | 428 } |
428 | 429 |
429 } // namespace content | 430 } // namespace content |
OLD | NEW |