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/web_contents/web_contents_view_aura.h" | 5 #include "content/browser/web_contents/web_contents_view_aura.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/strings/utf_string_conversions.h" |
9 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
10 #include "base/utf_string_conversions.h" | |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "content/browser/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
13 #include "content/browser/web_contents/navigation_controller_impl.h" | 13 #include "content/browser/web_contents/navigation_controller_impl.h" |
14 #include "content/browser/web_contents/navigation_entry_impl.h" | 14 #include "content/browser/web_contents/navigation_entry_impl.h" |
15 #include "content/browser/web_contents/web_contents_impl.h" | 15 #include "content/browser/web_contents/web_contents_impl.h" |
16 #include "content/browser/web_contents/web_contents_screenshot_manager.h" | 16 #include "content/browser/web_contents/web_contents_screenshot_manager.h" |
17 #include "content/public/browser/web_contents_view.h" | 17 #include "content/public/browser/web_contents_view.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "content/public/test/browser_test_utils.h" | 19 #include "content/public/test/browser_test_utils.h" |
20 #include "content/public/test/test_utils.h" | 20 #include "content/public/test/test_utils.h" |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 10); | 591 10); |
592 string16 actual_title = title_watcher.WaitAndGetTitle(); | 592 string16 actual_title = title_watcher.WaitAndGetTitle(); |
593 EXPECT_EQ(expected_title, actual_title); | 593 EXPECT_EQ(expected_title, actual_title); |
594 | 594 |
595 EXPECT_EQ(2, GetCurrentIndex()); | 595 EXPECT_EQ(2, GetCurrentIndex()); |
596 EXPECT_TRUE(controller.CanGoBack()); | 596 EXPECT_TRUE(controller.CanGoBack()); |
597 EXPECT_FALSE(controller.CanGoForward()); | 597 EXPECT_FALSE(controller.CanGoForward()); |
598 } | 598 } |
599 | 599 |
600 } // namespace content | 600 } // namespace content |
OLD | NEW |