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 "base/basictypes.h" | 5 #include <stddef.h> |
| 6 |
6 #include "base/command_line.h" | 7 #include "base/command_line.h" |
7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" |
8 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
| 13 #include "build/build_config.h" |
11 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 16 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
14 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_commands.h" | 18 #include "chrome/browser/ui/browser_commands.h" |
16 #include "chrome/browser/ui/browser_list.h" | 19 #include "chrome/browser/ui/browser_list.h" |
17 #include "chrome/browser/ui/browser_tabstrip.h" | 20 #include "chrome/browser/ui/browser_tabstrip.h" |
18 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 21 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 22 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
20 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 while (browser()->tab_strip_model()->count()) | 630 while (browser()->tab_strip_model()->count()) |
628 CloseTab(0); | 631 CloseTab(0); |
629 } | 632 } |
630 | 633 |
631 // Verifies restoring a tab works on startup. | 634 // Verifies restoring a tab works on startup. |
632 IN_PROC_BROWSER_TEST_F(TabRestoreTest, RestoreOnStartup) { | 635 IN_PROC_BROWSER_TEST_F(TabRestoreTest, RestoreOnStartup) { |
633 ASSERT_NO_FATAL_FAILURE(RestoreTab(0, 1)); | 636 ASSERT_NO_FATAL_FAILURE(RestoreTab(0, 1)); |
634 EXPECT_EQ(url1_, | 637 EXPECT_EQ(url1_, |
635 browser()->tab_strip_model()->GetWebContentsAt(1)->GetURL()); | 638 browser()->tab_strip_model()->GetWebContentsAt(1)->GetURL()); |
636 } | 639 } |
OLD | NEW |