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 <stddef.h> |
| 6 |
5 #include <vector> | 7 #include <vector> |
6 | 8 |
7 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/memory_pressure_listener.h" | 13 #include "base/memory/memory_pressure_listener.h" |
11 #include "base/process/launch.h" | 14 #include "base/process/launch.h" |
12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
13 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "build/build_config.h" |
14 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/defaults.h" | 19 #include "chrome/browser/defaults.h" |
16 #include "chrome/browser/first_run/first_run.h" | 20 #include "chrome/browser/first_run/first_run.h" |
17 #include "chrome/browser/prefs/session_startup_pref.h" | 21 #include "chrome/browser/prefs/session_startup_pref.h" |
18 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/profiles/profile_manager.h" | 23 #include "chrome/browser/profiles/profile_manager.h" |
20 #include "chrome/browser/sessions/session_restore.h" | 24 #include "chrome/browser/sessions/session_restore.h" |
21 #include "chrome/browser/sessions/session_restore_test_helper.h" | 25 #include "chrome/browser/sessions/session_restore_test_helper.h" |
22 #include "chrome/browser/sessions/session_service.h" | 26 #include "chrome/browser/sessions/session_service.h" |
23 #include "chrome/browser/sessions/session_service_factory.h" | 27 #include "chrome/browser/sessions/session_service_factory.h" |
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1526 // automatically at the start of the test. | 1530 // automatically at the start of the test. |
1527 for (size_t i = 1; i < web_contents().size(); i++) { | 1531 for (size_t i = 1; i < web_contents().size(); i++) { |
1528 GURL expected_url = GURL(kUrls[activation_order[kExpectedNumTabs - i]]); | 1532 GURL expected_url = GURL(kUrls[activation_order[kExpectedNumTabs - i]]); |
1529 ASSERT_EQ(expected_url, web_contents()[i]->GetLastCommittedURL()); | 1533 ASSERT_EQ(expected_url, web_contents()[i]->GetLastCommittedURL()); |
1530 if (i > 0) { | 1534 if (i > 0) { |
1531 ASSERT_GT(web_contents()[i - 1]->GetLastActiveTime(), | 1535 ASSERT_GT(web_contents()[i - 1]->GetLastActiveTime(), |
1532 web_contents()[i]->GetLastActiveTime()); | 1536 web_contents()[i]->GetLastActiveTime()); |
1533 } | 1537 } |
1534 } | 1538 } |
1535 } | 1539 } |
OLD | NEW |