This source file includes following definitions.
- TEST
#include "content/renderer/active_notification_tracker.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
TEST(ActiveNotificationTrackerTest, TestLookupAndClear) {
ActiveNotificationTracker tracker;
blink::WebNotification notification1;
int id1 = tracker.RegisterNotification(notification1);
blink::WebNotification notification2;
int id2 = tracker.RegisterNotification(notification2);
blink::WebNotification result;
tracker.GetNotification(id1, &result);
EXPECT_TRUE(result == notification1);
tracker.GetNotification(id2, &result);
EXPECT_TRUE(result == notification2);
tracker.Clear();
}
}