#include "chrome/browser/download/bubble/download_bubble_accessible_alerts_map.h"
#include <string>
#include <vector>
#include "base/strings/stringprintf.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
AllOf;
Field;
IsEmpty;
Pair;
UnorderedElementsAre;
Alert;
ContentId;
Urgency;
ContentId CreateTestContentId(const std::string& id) { … }
class DownloadBubbleAccessibleAlertsMapTest : public ::testing::Test { … };
TEST_F(DownloadBubbleAccessibleAlertsMapTest, AddNormalAlertToEmptyMap) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest, AddUrgentAlertToEmptyMap) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
AddTwoAlertsForDifferentDownloads) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
AddTwoNormalAlertsForSameDownload) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
AddTwoUrgentAlertsForSameDownload) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
AddNormalThenUrgentForSameDownload) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
AddUrgentThenNormalForSameDownload) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
AddTwoAlertsForSameDownload_BackwardsTime) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest, DontAnnounceStaleAlert) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest,
DontAnnounceAlreadyAnnouncedTooSoon) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest, AnnounceAfterIntervalPassed) { … }
TEST_F(DownloadBubbleAccessibleAlertsMapTest, GarbageCollect) { … }
}