OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/memory_pressure_listener.h" | 9 #include "base/memory/memory_pressure_listener.h" |
10 #include "base/process/launch.h" | 10 #include "base/process/launch.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/ui/browser_tabstrip.h" | 27 #include "chrome/browser/ui/browser_tabstrip.h" |
28 #include "chrome/browser/ui/browser_window.h" | 28 #include "chrome/browser/ui/browser_window.h" |
29 #include "chrome/browser/ui/host_desktop.h" | 29 #include "chrome/browser/ui/host_desktop.h" |
30 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 30 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
33 #include "chrome/test/base/in_process_browser_test.h" | 33 #include "chrome/test/base/in_process_browser_test.h" |
34 #include "chrome/test/base/test_switches.h" | 34 #include "chrome/test/base/test_switches.h" |
35 #include "chrome/test/base/ui_test_utils.h" | 35 #include "chrome/test/base/ui_test_utils.h" |
36 #include "components/sessions/content/content_live_tab.h" | 36 #include "components/sessions/content/content_live_tab.h" |
| 37 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
| 38 #include "components/sessions/core/session_types.h" |
37 #include "components/sessions/core/tab_restore_service.h" | 39 #include "components/sessions/core/tab_restore_service.h" |
38 #include "components/sessions/serialized_navigation_entry_test_helper.h" | |
39 #include "components/sessions/session_types.h" | |
40 #include "content/public/browser/navigation_controller.h" | 40 #include "content/public/browser/navigation_controller.h" |
41 #include "content/public/browser/navigation_entry.h" | 41 #include "content/public/browser/navigation_entry.h" |
42 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
43 #include "content/public/browser/notification_types.h" | 43 #include "content/public/browser/notification_types.h" |
44 #include "content/public/browser/render_process_host.h" | 44 #include "content/public/browser/render_process_host.h" |
45 #include "content/public/browser/render_view_host.h" | 45 #include "content/public/browser/render_view_host.h" |
46 #include "content/public/browser/web_contents.h" | 46 #include "content/public/browser/web_contents.h" |
47 #include "content/public/common/bindings_policy.h" | 47 #include "content/public/common/bindings_policy.h" |
48 #include "content/public/test/browser_test_utils.h" | 48 #include "content/public/test/browser_test_utils.h" |
49 #include "content/public/test/test_navigation_observer.h" | 49 #include "content/public/test/test_navigation_observer.h" |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 // automatically at the start of the test. | 1515 // automatically at the start of the test. |
1516 for (size_t i = 1; i < web_contents().size(); i++) { | 1516 for (size_t i = 1; i < web_contents().size(); i++) { |
1517 GURL expected_url = GURL(kUrls[activation_order[kExpectedNumTabs - i]]); | 1517 GURL expected_url = GURL(kUrls[activation_order[kExpectedNumTabs - i]]); |
1518 ASSERT_EQ(expected_url, web_contents()[i]->GetLastCommittedURL()); | 1518 ASSERT_EQ(expected_url, web_contents()[i]->GetLastCommittedURL()); |
1519 if (i > 0) { | 1519 if (i > 0) { |
1520 ASSERT_GT(web_contents()[i - 1]->GetLastActiveTime(), | 1520 ASSERT_GT(web_contents()[i - 1]->GetLastActiveTime(), |
1521 web_contents()[i]->GetLastActiveTime()); | 1521 web_contents()[i]->GetLastActiveTime()); |
1522 } | 1522 } |
1523 } | 1523 } |
1524 } | 1524 } |
OLD | NEW |