#include "chrome/browser/ui/download/download_bubble_security_view_info.h"
#include "base/strings/pattern.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/download/bubble/download_bubble_prefs.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_ui_model.h"
#include "chrome/browser/safe_browsing/download_protection/download_protection_service.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/test/base/testing_profile.h"
#include "components/download/public/common/mock_download_item.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/download_item_utils.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/vector_icons.h"
DownloadUIModelPtr;
TailoredVerdict;
DownloadItem;
NiceMock;
Return;
ReturnRefOfCopy;
class DownloadBubbleSecurityViewInfoTest
: public ::testing::Test,
public DownloadBubbleSecurityViewInfoObserver { … };
class DownloadBubbleSecurityViewInfoTestGM3
: public DownloadBubbleSecurityViewInfoTest { … };
TEST_F(DownloadBubbleSecurityViewInfoTest, DangerousWarningInfo) { … }
TEST_F(DownloadBubbleSecurityViewInfoTestGM3, InterruptedInfo) { … }
#if BUILDFLAG(FULL_SAFE_BROWSING)
TEST_F(DownloadBubbleSecurityViewInfoTest,
FileTypeWarning_HasSafeBrowsingVerdict) { … }
TEST_F(DownloadBubbleSecurityViewInfoTest,
FileTypeWarning_SafeBrowsingOn_NoVerdict) { … }
TEST_F(DownloadBubbleSecurityViewInfoTest,
FileTypeWarning_NoSafeBrowsing_DisabledByPref) { … }
TEST_F(DownloadBubbleSecurityViewInfoTest,
FileTypeWarning_NoSafeBrowsing_DisabledManaged) { … }
#endif
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
class DownloadBubbleSecurityViewInfoTailoredWarningTest
: public DownloadBubbleSecurityViewInfoTest { … };
TEST_F(DownloadBubbleSecurityViewInfoTailoredWarningTest,
GetInfoForTailoredWarning_CookieTheft) { … }
TEST_F(DownloadBubbleSecurityViewInfoTailoredWarningTest,
GetInfoForTailoredWarning_SuspiciousArchive) { … }
TEST_F(DownloadBubbleSecurityViewInfoTailoredWarningTest,
GetInfoForTailoredWarning_AccountInfoStringWithAccount) { … }
TEST_F(DownloadBubbleSecurityViewInfoTailoredWarningTest,
GetInfoForTailoredWarning_AccountInfoStringWithoutAccount) { … }
#endif