chromium/ui/message_center/notification_list_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/message_center/notification_list.h"

#include <stddef.h>

#include <memory>
#include <utility>

#include "base/i18n/time_formatting.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/message_center/fake_message_center.h"
#include "ui/message_center/notification_blocker.h"
#include "ui/message_center/public/cpp/message_center_constants.h"
#include "ui/message_center/public/cpp/notification_types.h"
#include "ui/message_center/public/cpp/notifier_id.h"

#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/constants/notifier_catalogs.h"
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)

namespace message_center {

NotificationState;

// A trivial blocker that allows all popups.
class NopNotificationBlocker : public NotificationBlocker {};

class NotificationListTest : public testing::Test {};

bool IsInNotifications(const NotificationList::Notifications& notifications,
                       const std::string& id) {}

const char16_t NotificationListTest::kDisplaySource[] =;
const char NotificationListTest::kExtensionId[] =;

TEST_F(NotificationListTest, Basic) {}

TEST_F(NotificationListTest, MessageCenterVisible) {}

TEST_F(NotificationListTest, UpdateNotification) {}

TEST_F(NotificationListTest, UpdateNotificationWithRenotifyAndQuietMode) {}

TEST_F(NotificationListTest, ResetPopupInQuietMode) {}

TEST_F(NotificationListTest, GetNotificationsByNotifierId) {}

TEST_F(NotificationListTest, OldPopupShouldNotBeHidden) {}

TEST_F(NotificationListTest, Priority) {}

TEST_F(NotificationListTest, WithoutOneBlocker) {}

// Tests that GetNotificationsByAppId returns notifications regardless of their
// visibility.
TEST_F(NotificationListTest, GetNotificationsByAppId) {}

// Tests that GetNotificationsByOriginUrl returns notifications regardless of
// their visibility.
TEST_F(NotificationListTest, GetNotificationsByOriginUrl) {}

TEST_F(NotificationListTest, HasPopupsWithPriority) {}

TEST_F(NotificationListTest, AllPopupsDismissedWhenMarkedAsShown) {}

TEST_F(NotificationListTest, GetNotifications) {}

// Verifies that notification updates will re-show the toast when there is no
// message center view (i.e. the bubble anchored to the status bar).
TEST_F(NotificationListTest, UpdateWithoutMessageCenterView) {}

TEST_F(NotificationListTest, Renotify) {}

TEST_F(NotificationListTest, PriorityAndRenotify) {}

TEST_F(NotificationListTest, NotificationOrderAndPriority) {}

TEST_F(NotificationListTest, MarkSinglePopupAsShown) {}

TEST_F(NotificationListTest, UpdateAfterMarkedAsShown) {}

TEST_F(NotificationListTest, QuietMode) {}

TEST_F(NotificationListTest, TestHasNotificationOfType) {}

}  // namespace message_center