#include "chrome/browser/download/bubble/download_bubble_utils.h"
#include <string>
#include "chrome/browser/download/bubble/download_bubble_accessible_alerts_map.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_ui_model.h"
#include "components/download/public/common/download_danger_type.h"
#include "components/download/public/common/download_interrupt_reasons.h"
#include "components/download/public/common/mock_download_item.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
NiceMock;
Return;
ReturnRef;
ReturnRefOfCopy;
Alert;
State;
std::unique_ptr<NiceMock<download::MockDownloadItem>> InitDownloadItem(
download::DownloadItem::DownloadState state,
download::DownloadDangerType danger_type =
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS) { … }
MATCHER_P2(MatchesAlert, alert_substring, urgency, "") { … }
MATCHER(AlertIsEmpty, "") { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_InProgressNormal) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_InProgressPaused) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_Interrupted) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_Complete) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_Cancelled) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_Dangerous) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_PromptForScanning) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_DeepScanning) { … }
TEST(DownloadBubbleUtilsTest, GetAccessibleAlertForModel_Insecure) { … }
}