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 "content/browser/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "content/public/test/content_browser_test_utils.h" | 50 #include "content/public/test/content_browser_test_utils.h" |
51 #include "content/public/test/test_navigation_observer.h" | 51 #include "content/public/test/test_navigation_observer.h" |
52 #include "content/public/test/test_utils.h" | 52 #include "content/public/test/test_utils.h" |
53 #include "content/test/content_browser_test_utils_internal.h" | 53 #include "content/test/content_browser_test_utils_internal.h" |
54 #include "content/test/test_frame_navigation_observer.h" | 54 #include "content/test/test_frame_navigation_observer.h" |
55 #include "ipc/ipc_security_test_util.h" | 55 #include "ipc/ipc_security_test_util.h" |
56 #include "net/dns/mock_host_resolver.h" | 56 #include "net/dns/mock_host_resolver.h" |
57 #include "net/test/embedded_test_server/embedded_test_server.h" | 57 #include "net/test/embedded_test_server/embedded_test_server.h" |
58 #include "third_party/WebKit/public/web/WebInputEvent.h" | 58 #include "third_party/WebKit/public/web/WebInputEvent.h" |
59 #include "third_party/WebKit/public/web/WebSandboxFlags.h" | 59 #include "third_party/WebKit/public/web/WebSandboxFlags.h" |
| 60 #include "ui/display/display_switches.h" |
60 #include "ui/events/event.h" | 61 #include "ui/events/event.h" |
61 #include "ui/events/event_utils.h" | 62 #include "ui/events/event_utils.h" |
62 #include "ui/gfx/geometry/point.h" | 63 #include "ui/gfx/geometry/point.h" |
63 #include "ui/gfx/switches.h" | |
64 | 64 |
65 #if defined(USE_AURA) | 65 #if defined(USE_AURA) |
66 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 66 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
67 #endif | 67 #endif |
68 | 68 |
69 #if defined(OS_MACOSX) | 69 #if defined(OS_MACOSX) |
70 #include "ui/base/test/scoped_preferred_scroller_style_mac.h" | 70 #include "ui/base/test/scoped_preferred_scroller_style_mac.h" |
71 #endif | 71 #endif |
72 | 72 |
73 namespace content { | 73 namespace content { |
(...skipping 6406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6480 // Go back and ensure the about:blank URL committed in the same SiteInstance | 6480 // Go back and ensure the about:blank URL committed in the same SiteInstance |
6481 // as the original navigation. | 6481 // as the original navigation. |
6482 EXPECT_TRUE(web_contents()->GetController().CanGoBack()); | 6482 EXPECT_TRUE(web_contents()->GetController().CanGoBack()); |
6483 TestFrameNavigationObserver frame_observer(child); | 6483 TestFrameNavigationObserver frame_observer(child); |
6484 web_contents()->GetController().GoBack(); | 6484 web_contents()->GetController().GoBack(); |
6485 frame_observer.WaitForCommit(); | 6485 frame_observer.WaitForCommit(); |
6486 EXPECT_EQ(orig_site_instance, child->current_frame_host()->GetSiteInstance()); | 6486 EXPECT_EQ(orig_site_instance, child->current_frame_host()->GetSiteInstance()); |
6487 } | 6487 } |
6488 | 6488 |
6489 } // namespace content | 6489 } // namespace content |
OLD | NEW |