| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" |
| 9 #include "chrome/browser/background/background_mode_manager.h" | 11 #include "chrome/browser/background/background_mode_manager.h" |
| 10 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/browser_shutdown.h" | 13 #include "chrome/browser/browser_shutdown.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/defaults.h" | 15 #include "chrome/browser/defaults.h" |
| 14 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 16 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 15 #include "chrome/browser/download/download_prefs.h" | 17 #include "chrome/browser/download/download_prefs.h" |
| 16 #include "chrome/browser/download/download_service.h" | 18 #include "chrome/browser/download/download_service.h" |
| 17 #include "chrome/browser/download/download_service_factory.h" | 19 #include "chrome/browser/download/download_service_factory.h" |
| 18 #include "chrome/browser/lifetime/application_lifetime.h" | 20 #include "chrome/browser/lifetime/application_lifetime.h" |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 | 1034 |
| 1033 chrome::CloseAllBrowsers(); | 1035 chrome::CloseAllBrowsers(); |
| 1034 EXPECT_FALSE(browser_shutdown::IsTryingToQuit()); | 1036 EXPECT_FALSE(browser_shutdown::IsTryingToQuit()); |
| 1035 EXPECT_TRUE(chrome::BrowserIterator().done()); | 1037 EXPECT_TRUE(chrome::BrowserIterator().done()); |
| 1036 EXPECT_TRUE(IsBackgroundModeSuspended()); | 1038 EXPECT_TRUE(IsBackgroundModeSuspended()); |
| 1037 } | 1039 } |
| 1038 | 1040 |
| 1039 INSTANTIATE_TEST_CASE_P(BrowserCloseManagerWithBackgroundModeBrowserTest, | 1041 INSTANTIATE_TEST_CASE_P(BrowserCloseManagerWithBackgroundModeBrowserTest, |
| 1040 BrowserCloseManagerWithBackgroundModeBrowserTest, | 1042 BrowserCloseManagerWithBackgroundModeBrowserTest, |
| 1041 testing::Bool()); | 1043 testing::Bool()); |
| OLD | NEW |