| 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/common/content_paths.h" | 13 #include "content/public/common/content_paths.h" |
| 14 #include "content/public/test/browser_test_utils.h" | 14 #include "content/public/test/browser_test_utils.h" |
| 15 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
| 16 #include "content/shell/shell.h" | 16 #include "content/shell/shell.h" |
| 17 #include "content/test/content_browser_test.h" | 17 #include "content/test/content_browser_test.h" |
| 18 #include "content/test/content_browser_test_utils.h" | 18 #include "content/test/content_browser_test_utils.h" |
| 19 #include "net/test/embedded_test_server/embedded_test_server.h" | 19 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 20 #include "net/test/spawned_test_server/spawned_test_server.h" | |
| 21 | 20 |
| 22 namespace content { | 21 namespace content { |
| 23 | 22 |
| 24 class WebContentsImplBrowserTest : public ContentBrowserTest { | 23 class WebContentsImplBrowserTest : public ContentBrowserTest { |
| 25 public: | 24 public: |
| 26 WebContentsImplBrowserTest() {} | 25 WebContentsImplBrowserTest() {} |
| 27 | 26 |
| 28 private: | 27 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(WebContentsImplBrowserTest); | 28 DISALLOW_COPY_AND_ASSIGN(WebContentsImplBrowserTest); |
| 30 }; | 29 }; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // tree in the browser process. | 156 // tree in the browser process. |
| 158 NavigateToURL(shell(), embedded_test_server()->GetURL("/title1.html")); | 157 NavigateToURL(shell(), embedded_test_server()->GetURL("/title1.html")); |
| 159 | 158 |
| 160 root = wc->GetFrameTreeRootForTesting(); | 159 root = wc->GetFrameTreeRootForTesting(); |
| 161 EXPECT_EQ(0UL, root->child_count()); | 160 EXPECT_EQ(0UL, root->child_count()); |
| 162 EXPECT_EQ(std::string(), root->frame_name()); | 161 EXPECT_EQ(std::string(), root->frame_name()); |
| 163 EXPECT_EQ(rvh->main_frame_id(), root->frame_id()); | 162 EXPECT_EQ(rvh->main_frame_id(), root->frame_id()); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } // namespace content | 165 } // namespace content |
| OLD | NEW |