| 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/path_service.h" | 5 #include "base/path_service.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "content/browser/frame_host/render_frame_host_impl.h" | 9 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 11 #include "content/browser/web_contents/web_contents_impl.h" | 11 #include "content/browser/web_contents/web_contents_impl.h" |
| 12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
| 13 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
| 14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
| 15 #include "content/public/common/content_paths.h" | 15 #include "content/public/common/content_paths.h" |
| 16 #include "content/public/common/frame_navigate_params.h" | 16 #include "content/public/common/frame_navigate_params.h" |
| 17 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
| 18 #include "content/public/test/content_browser_test.h" |
| 19 #include "content/public/test/content_browser_test_utils.h" |
| 18 #include "content/shell/browser/shell.h" | 20 #include "content/shell/browser/shell.h" |
| 19 #include "content/test/content_browser_test.h" | |
| 20 #include "content/test/content_browser_test_utils.h" | |
| 21 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
| 22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 23 #include "net/test/embedded_test_server/embedded_test_server.h" | 23 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 class RenderViewHostTest : public ContentBrowserTest { | 27 class RenderViewHostTest : public ContentBrowserTest { |
| 28 public: | 28 public: |
| 29 RenderViewHostTest() {} | 29 RenderViewHostTest() {} |
| 30 }; | 30 }; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 Shell* new_shell = new_shell_observer.GetShell(); | 111 Shell* new_shell = new_shell_observer.GetShell(); |
| 112 FrameTreeNode* new_root = static_cast<WebContentsImpl*>( | 112 FrameTreeNode* new_root = static_cast<WebContentsImpl*>( |
| 113 new_shell->web_contents())->GetFrameTree()->root(); | 113 new_shell->web_contents())->GetFrameTree()->root(); |
| 114 | 114 |
| 115 EXPECT_TRUE(new_root->current_frame_host()); | 115 EXPECT_TRUE(new_root->current_frame_host()); |
| 116 EXPECT_NE(old_root->current_frame_host()->routing_id(), | 116 EXPECT_NE(old_root->current_frame_host()->routing_id(), |
| 117 new_root->current_frame_host()->routing_id()); | 117 new_root->current_frame_host()->routing_id()); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace content | 120 } // namespace content |
| OLD | NEW |