chromium/content/browser/notifications/platform_notification_context_unittest.cc

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

#include <stdint.h>

#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/notifications/platform_notification_context_impl.h"
#include "content/browser/service_worker/embedded_worker_test_helper.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/public/browser/notification_database_data.h"
#include "content/public/browser/permission_result.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_features.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_permission_manager.h"
#include "content/public/test/test_browser_context.h"
#include "content/test/mock_platform_notification_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/common/permissions/permission_utils.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration.mojom.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration_options.mojom.h"
#include "third_party/leveldatabase/leveldb_chrome.h"
#include "url/gurl.h"

Return;

namespace content {

// Fake Service Worker registration id to use in tests requiring one.
const int64_t kFakeServiceWorkerRegistrationId =;

class PlatformNotificationContextTest : public ::testing::Test {};

TEST_F(PlatformNotificationContextTest, ReadNonExistentNotification) {}

TEST_F(PlatformNotificationContextTest, InitializeIsLazy) {}

TEST_F(PlatformNotificationContextTest, WriteReadNotification) {}

TEST_F(PlatformNotificationContextTest, ReadNotificationsFromBrowser) {}

TEST_F(PlatformNotificationContextTest, WriteReadReplacedNotification) {}

TEST_F(PlatformNotificationContextTest, DeleteInvalidNotification) {}

TEST_F(PlatformNotificationContextTest, DeleteNotification) {}

TEST_F(PlatformNotificationContextTest, DeleteClosesNotification) {}

TEST_F(PlatformNotificationContextTest,
       DeleteAllNotificationDataForBlockedOrigins) {}

TEST_F(PlatformNotificationContextTest, ServiceWorkerUnregistered) {}

TEST_F(PlatformNotificationContextTest, DestroyDatabaseOnStorageWiped) {}

TEST_F(PlatformNotificationContextTest, DestroyOnDiskDatabase) {}

TEST_F(PlatformNotificationContextTest, DestroyCorruptedDatabase) {}

TEST_F(PlatformNotificationContextTest, ReadAllServiceWorkerDataEmpty) {}

TEST_F(PlatformNotificationContextTest, ReadAllServiceWorkerDataFilled) {}

TEST_F(PlatformNotificationContextTest, SynchronizeNotifications) {}

TEST_F(PlatformNotificationContextTest, DeleteOldNotifications) {}

TEST_F(PlatformNotificationContextTest, WriteDisplaysNotification) {}

TEST_F(PlatformNotificationContextTest, WriteReadNotificationResources) {}

TEST_F(PlatformNotificationContextTest, ReDisplayNotifications) {}

TEST_F(PlatformNotificationContextTest, CountVisibleNotification) {}

TEST_F(PlatformNotificationContextTest, DeleteNotificationsWithTag) {}

TEST_F(PlatformNotificationContextTest, DeleteNotificationsWithTagFromBrowser) {}

TEST_F(PlatformNotificationContextTest, GetOldestNotificationTime) {}

TEST_F(PlatformNotificationContextTest,
       GetOldestNotificationTimeForEmptyOrigin) {}

}  // namespace content