#include <stddef.h>
#include "base/check_op.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "chrome/browser/download/download_core_service.h"
#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/browser_context.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/buildflags/buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
class TestingDownloadCoreService : public DownloadCoreService { … };
static std::unique_ptr<KeyedService> CreateTestingDownloadCoreService(
content::BrowserContext* browser_context) { … }
class BrowserCloseTest : public testing::Test { … };
TEST_F(BrowserCloseTest, LastWindowIncognito) { … }
TEST_F(BrowserCloseTest, LastIncognito) { … }
TEST_F(BrowserCloseTest, LastIncognitoNoDownloads) { … }
TEST_F(BrowserCloseTest, NoIncognitoCrossChat) { … }
TEST_F(BrowserCloseTest, NonLastIncognito) { … }
TEST_F(BrowserCloseTest, NonLastRegular) { … }
TEST_F(BrowserCloseTest, LastRegular) { … }
TEST_F(BrowserCloseTest, LastRegularDifferentProfile) { … }
TEST_F(BrowserCloseTest, LastRegularPlusIncognito) { … }
TEST_F(BrowserCloseTest, LastRegularPlusOtherProfile) { … }
TEST_F(BrowserCloseTest, LastRegularPlusOtherIncognito) { … }
TEST_F(BrowserCloseTest, LastRegularPlusIncognito2) { … }
TEST_F(BrowserCloseTest, Plural) { … }
TEST_F(BrowserCloseTest, PluralIncognito) { … }
TEST_F(BrowserCloseTest, LastWindowGuest) { … }
TEST_F(BrowserCloseTest, LastGuest) { … }
TEST_F(BrowserCloseTest, LastGuestNoDownloads) { … }
TEST_F(BrowserCloseTest, NonLastGuest) { … }