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/json/json_reader.h" | 5 #include "base/json/json_reader.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.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/site_instance_impl.h" | 11 #include "content/browser/site_instance_impl.h" |
12 #include "content/browser/web_contents/web_contents_impl.h" | 12 #include "content/browser/web_contents/web_contents_impl.h" |
13 #include "content/common/content_constants_internal.h" | 13 #include "content/common/content_constants_internal.h" |
14 #include "content/public/browser/navigation_controller.h" | 14 #include "content/public/browser/navigation_controller.h" |
15 #include "content/public/browser/navigation_entry.h" | 15 #include "content/public/browser/navigation_entry.h" |
16 #include "content/public/browser/notification_details.h" | 16 #include "content/public/browser/notification_details.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 NavigateToURL(shell(), https_server.GetURL("files/title1.html")); | 1283 NavigateToURL(shell(), https_server.GetURL("files/title1.html")); |
1284 | 1284 |
1285 // Make sure it ends up at the right page. | 1285 // Make sure it ends up at the right page. |
1286 WaitForLoadStop(shell()->web_contents()); | 1286 WaitForLoadStop(shell()->web_contents()); |
1287 EXPECT_EQ(https_server.GetURL("files/title1.html"), | 1287 EXPECT_EQ(https_server.GetURL("files/title1.html"), |
1288 shell()->web_contents()->GetURL()); | 1288 shell()->web_contents()->GetURL()); |
1289 EXPECT_EQ(new_site_instance, shell()->web_contents()->GetSiteInstance()); | 1289 EXPECT_EQ(new_site_instance, shell()->web_contents()->GetSiteInstance()); |
1290 } | 1290 } |
1291 | 1291 |
1292 } // namespace content | 1292 } // namespace content |
OLD | NEW |