#include "content/browser/notifications/notification_database.h"
#include <stddef.h>
#include <stdint.h>
#include <optional>
#include "base/files/scoped_temp_dir.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "base/uuid.h"
#include "content/public/browser/notification_database_data.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/common/notifications/platform_notification_data.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
#include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
#include "url/gurl.h"
namespace content {
const int kExampleServiceWorkerRegistrationId = …;
const struct { … } kExampleNotificationData[] = …;
class NotificationDatabaseTest : public ::testing::Test { … };
TEST_F(NotificationDatabaseTest, OpenCloseMemory) { … }
TEST_F(NotificationDatabaseTest, OpenCloseFileSystem) { … }
TEST_F(NotificationDatabaseTest, DestroyDatabase) { … }
TEST_F(NotificationDatabaseTest, NotificationIdIncrements) { … }
TEST_F(NotificationDatabaseTest, NotificationIdIncrementsStorage) { … }
TEST_F(NotificationDatabaseTest, ReadInvalidNotificationData) { … }
TEST_F(NotificationDatabaseTest, ReadNotificationDataDifferentOrigin) { … }
TEST_F(NotificationDatabaseTest, ReadNotificationDataReflection) { … }
TEST_F(NotificationDatabaseTest, ReadInvalidNotificationResources) { … }
TEST_F(NotificationDatabaseTest, ReadNotificationResourcesDifferentOrigin) { … }
TEST_F(NotificationDatabaseTest, ReadNotificationResourcesReflection) { … }
TEST_F(NotificationDatabaseTest, ReadWriteMultipleNotificationData) { … }
TEST_F(NotificationDatabaseTest, ReadNotificationUpdateInteraction) { … }
TEST_F(NotificationDatabaseTest, DeleteInvalidNotificationData) { … }
TEST_F(NotificationDatabaseTest, DeleteNotificationDataSameOrigin) { … }
TEST_F(NotificationDatabaseTest, DeleteNotificationResourcesSameOrigin) { … }
TEST_F(NotificationDatabaseTest, DeleteNotificationDataDifferentOrigin) { … }
TEST_F(NotificationDatabaseTest, DeleteInvalidNotificationResources) { … }
TEST_F(NotificationDatabaseTest, DeleteNotificationResources) { … }
TEST_F(NotificationDatabaseTest,
ForEachNotificationDataForServiceWorkerRegistration) { … }
TEST_F(NotificationDatabaseTest, ReadAllNotificationDataForOrigin) { … }
TEST_F(NotificationDatabaseTest,
ReadAllNotificationDataForServiceWorkerRegistration) { … }
TEST_F(NotificationDatabaseTest,
ReadAllNotificationDataForServiceWorkerRegistrationShownByBrowser) { … }
TEST_F(NotificationDatabaseTest, DeleteAllNotificationDataForOrigin) { … }
TEST_F(NotificationDatabaseTest, DeleteAllNotificationDataForOriginWithTag) { … }
TEST_F(NotificationDatabaseTest, DeleteAllNotificationDataForOriginEmpty) { … }
TEST_F(NotificationDatabaseTest,
DeleteAllNotificationDataForOriginShownByBrowser) { … }
TEST_F(NotificationDatabaseTest,
DeleteAllNotificationDataForServiceWorkerRegistration) { … }
}