chromium/content/browser/notifications/notification_database_conversions_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/342213636): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include "content/browser/notifications/notification_database_conversions.h"

#include <stddef.h>
#include <stdint.h>

#include <optional>

#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "content/browser/notifications/notification_database_data.pb.h"
#include "content/browser/notifications/notification_database_resources.pb.h"
#include "content/public/browser/notification_database_data.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_constants.h"
#include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/image/image_unittest_util.h"

namespace content {

const char kNotificationId[] =;
const int64_t kServiceWorkerRegistrationId =;
const bool kReplacedExistingNotification =;
const int kNumClicks =;
const int kNumActionButtonClicks =;
const double kInitTimeMillis =;
const int kTimeUntilFirstClickMillis =;
const int kTimeUntilLastClickMillis =;
const int kTimeUntilCloseMillis =;

const blink::mojom::NotificationActionType kNotificationActionType =;
const char kOrigin[] =;
const char16_t kNotificationTitle[] =;
const char kNotificationLang[] =;
const char16_t kNotificationBody[] =;
const char kNotificationTag[] =;
const char kNotificationImageUrl[] =;
const char kNotificationIconUrl[] =;
const char kNotificationBadgeUrl[] =;
const char kNotificationActionIconUrl[] =;
const int kNotificationVibrationPattern[] =;
const double kNotificationTimestamp =;
const unsigned char kNotificationData[] =;
const double kShowTriggerTimestamp =;
const bool kHasTriggered =;

TEST(NotificationDatabaseConversionsTest, SerializeAndDeserializeData) {}

TEST(NotificationDatabaseConversionsTest, ActionDeserializationIsNotAdditive) {}

TEST(NotificationDatabaseConversionsTest, SerializeAndDeserializeActionTypes) {}

TEST(NotificationDatabaseConversionsTest, SerializeAndDeserializeDirections) {}

TEST(NotificationDatabaseConversionsTest,
     SerializeAndDeserializeClosedReasons) {}

TEST(NotificationDatabaseConversionsTest,
     SerializeAndDeserializeNullPlaceholder) {}

TEST(NotificationDatabaseConversionsTest,
     SerializeAndDeserializeNullShowTriggerTimestamp) {}

TEST(NotificationDatabaseConversionsTest, OptionalFieldsGetCleared) {}

TEST(NotificationDatabaseConversionsTest,
     SerializeAndDeserializeNotificationResources) {}

}  // namespace content