#include "chrome/browser/notifications/scheduler/internal/notification_scheduler.h"
#include <map>
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "chrome/browser/notifications/scheduler/internal/notification_entry.h"
#include "chrome/browser/notifications/scheduler/internal/notification_scheduler_context.h"
#include "chrome/browser/notifications/scheduler/internal/scheduler_config.h"
#include "chrome/browser/notifications/scheduler/public/notification_scheduler_client_registrar.h"
#include "chrome/browser/notifications/scheduler/public/notification_scheduler_types.h"
#include "chrome/browser/notifications/scheduler/test/mock_background_task_coordinator.h"
#include "chrome/browser/notifications/scheduler/test/mock_display_agent.h"
#include "chrome/browser/notifications/scheduler/test/mock_display_decider.h"
#include "chrome/browser/notifications/scheduler/test/mock_impression_history_tracker.h"
#include "chrome/browser/notifications/scheduler/test/mock_notification_background_task_scheduler.h"
#include "chrome/browser/notifications/scheduler/test/mock_notification_scheduler_client.h"
#include "chrome/browser/notifications/scheduler/test/mock_scheduled_notification_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Invoke;
InvokeWithoutArgs;
NiceMock;
SetArgPointee;
namespace notifications {
namespace {
const char kGuid[] = …;
const char16_t kTitle[] = …;
class NotificationSchedulerTest : public testing::Test { … };
TEST_F(NotificationSchedulerTest, InitSuccess) { … }
TEST_F(NotificationSchedulerTest, InitImpressionTrackerFailed) { … }
TEST_F(NotificationSchedulerTest, InitScheduledNotificationManagerFailed) { … }
TEST_F(NotificationSchedulerTest, Schedule) { … }
TEST_F(NotificationSchedulerTest, ScheduleFailed) { … }
TEST_F(NotificationSchedulerTest, DeleteAllNotifications) { … }
TEST_F(NotificationSchedulerTest, GetClientOverview) { … }
TEST_F(NotificationSchedulerTest, OnUserAction) { … }
TEST_F(NotificationSchedulerTest, BackgroundTaskStartShowNothing) { … }
MATCHER_P(NotificationDataEq, title, "Verify notification data.") { … }
MATCHER_P2(SystemDataEq, type, guid, "Verify system data.") { … }
TEST_F(NotificationSchedulerTest, BackgroundTaskStartShowNotification) { … }
TEST_F(NotificationSchedulerTest, BackgroundTaskStartNoEntry) { … }
TEST_F(NotificationSchedulerTest, BackgroundTaskStartNoClient) { … }
TEST_F(NotificationSchedulerTest, ClientDropNotification) { … }
TEST_F(NotificationSchedulerTest, BackgroundTaskStop) { … }
}
}