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 <string.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "content/browser/frame_host/navigation_entry_impl.h" | 12 #include "content/browser/frame_host/navigation_entry_impl.h" |
11 #include "content/browser/web_contents/web_contents_view.h" | 13 #include "content/browser/web_contents/web_contents_view.h" |
12 #include "content/common/frame_messages.h" | 14 #include "content/common/frame_messages.h" |
13 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
14 #include "content/public/browser/overscroll_configuration.h" | 16 #include "content/public/browser/overscroll_configuration.h" |
15 #include "content/public/common/browser_side_navigation_policy.h" | 17 #include "content/public/common/browser_side_navigation_policy.h" |
16 #include "content/public/test/mock_render_process_host.h" | 18 #include "content/public/test/mock_render_process_host.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 EXPECT_TRUE(GetOverlay()->window_.get()); | 406 EXPECT_TRUE(GetOverlay()->window_.get()); |
405 | 407 |
406 // Load the page. | 408 // Load the page. |
407 contents()->CommitPendingNavigation(); | 409 contents()->CommitPendingNavigation(); |
408 ReceivePaintUpdate(); | 410 ReceivePaintUpdate(); |
409 EXPECT_FALSE(GetOverlay()->window_.get()); | 411 EXPECT_FALSE(GetOverlay()->window_.get()); |
410 EXPECT_EQ(contents()->GetURL(), first()); | 412 EXPECT_EQ(contents()->GetURL(), first()); |
411 } | 413 } |
412 | 414 |
413 } // namespace content | 415 } // namespace content |
OLD | NEW |