#include "chrome/browser/download/download_core_service_impl.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "chrome/test/base/testing_profile.h"
#include "components/download/public/common/download_item.h"
#include "components/download/public/common/mock_download_item.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_download_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
DownloadState;
CancelDownloadsTrigger;
_;
NiceMock;
Return;
SetArgPointee;
class TestDownloadManagerDelegate : public ChromeDownloadManagerDelegate { … };
class DownloadCoreServiceImplTest : public testing::Test { … };
TEST_F(DownloadCoreServiceImplTest, CancelDownloadsAtShutdown) { … }
TEST_F(DownloadCoreServiceImplTest, CancelDownloadsAtProfileDeletion) { … }
}