OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/web_contents/aura/overscroll_navigation_overlay.h" | 5 #include "content/browser/web_contents/aura/overscroll_navigation_overlay.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
| 9 #include "base/macros.h" |
9 #include "content/browser/frame_host/navigation_entry_impl.h" | 10 #include "content/browser/frame_host/navigation_entry_impl.h" |
10 #include "content/browser/web_contents/web_contents_view.h" | 11 #include "content/browser/web_contents/web_contents_view.h" |
11 #include "content/common/frame_messages.h" | 12 #include "content/common/frame_messages.h" |
12 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
13 #include "content/public/browser/overscroll_configuration.h" | 14 #include "content/public/browser/overscroll_configuration.h" |
14 #include "content/public/common/browser_side_navigation_policy.h" | 15 #include "content/public/common/browser_side_navigation_policy.h" |
15 #include "content/public/test/mock_render_process_host.h" | 16 #include "content/public/test/mock_render_process_host.h" |
16 #include "content/test/test_render_frame_host.h" | 17 #include "content/test/test_render_frame_host.h" |
17 #include "content/test/test_render_view_host.h" | 18 #include "content/test/test_render_view_host.h" |
18 #include "content/test/test_web_contents.h" | 19 #include "content/test/test_web_contents.h" |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 EXPECT_TRUE(GetOverlay()->window_.get()); | 404 EXPECT_TRUE(GetOverlay()->window_.get()); |
404 | 405 |
405 // Load the page. | 406 // Load the page. |
406 contents()->CommitPendingNavigation(); | 407 contents()->CommitPendingNavigation(); |
407 ReceivePaintUpdate(); | 408 ReceivePaintUpdate(); |
408 EXPECT_FALSE(GetOverlay()->window_.get()); | 409 EXPECT_FALSE(GetOverlay()->window_.get()); |
409 EXPECT_EQ(contents()->GetURL(), first()); | 410 EXPECT_EQ(contents()->GetURL(), first()); |
410 } | 411 } |
411 | 412 |
412 } // namespace content | 413 } // namespace content |
OLD | NEW |