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 "base/values.h" | 5 #include "base/values.h" |
6 #include "content/browser/renderer_host/render_view_host_impl.h" | 6 #include "content/browser/renderer_host/render_view_host_impl.h" |
7 #include "content/browser/web_contents/web_contents_impl.h" | 7 #include "content/browser/web_contents/web_contents_impl.h" |
8 #include "content/public/browser/load_notification_details.h" | 8 #include "content/public/browser/load_notification_details.h" |
9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.h" |
10 #include "content/public/browser/notification_details.h" | 10 #include "content/public/browser/notification_details.h" |
11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_types.h" | 12 #include "content/public/browser/notification_types.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 #include "content/public/common/content_paths.h" | 14 #include "content/public/common/content_paths.h" |
15 #include "content/public/test/browser_test_utils.h" | 15 #include "content/public/test/browser_test_utils.h" |
16 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
17 #include "content/shell/shell.h" | 17 #include "content/shell/browser/shell.h" |
18 #include "content/test/content_browser_test.h" | 18 #include "content/test/content_browser_test.h" |
19 #include "content/test/content_browser_test_utils.h" | 19 #include "content/test/content_browser_test_utils.h" |
20 #include "net/test/embedded_test_server/embedded_test_server.h" | 20 #include "net/test/embedded_test_server/embedded_test_server.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 class WebContentsImplBrowserTest : public ContentBrowserTest { | 24 class WebContentsImplBrowserTest : public ContentBrowserTest { |
25 public: | 25 public: |
26 WebContentsImplBrowserTest() {} | 26 WebContentsImplBrowserTest() {} |
27 | 27 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // tree in the browser process. | 153 // tree in the browser process. |
154 NavigateToURL(shell(), embedded_test_server()->GetURL("/title1.html")); | 154 NavigateToURL(shell(), embedded_test_server()->GetURL("/title1.html")); |
155 | 155 |
156 root = wc->GetFrameTreeRootForTesting(); | 156 root = wc->GetFrameTreeRootForTesting(); |
157 EXPECT_EQ(0UL, root->child_count()); | 157 EXPECT_EQ(0UL, root->child_count()); |
158 EXPECT_EQ(std::string(), root->frame_name()); | 158 EXPECT_EQ(std::string(), root->frame_name()); |
159 EXPECT_EQ(rvh->main_frame_id(), root->frame_id()); | 159 EXPECT_EQ(rvh->main_frame_id(), root->frame_id()); |
160 } | 160 } |
161 | 161 |
162 } // namespace content | 162 } // namespace content |
OLD | NEW |