chromium/third_party/blink/renderer/modules/notifications/notification_data_test.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/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/notifications/notification_data.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_constants.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_unsignedlong_unsignedlongsequence.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_notification_action.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_notification_options.h"
#include "third_party/blink/renderer/modules/notifications/notification.h"
#include "third_party/blink/renderer/modules/notifications/timestamp_trigger.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/exception_state_matchers.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"

namespace blink {
namespace {

const char kNotificationBaseUrl[] =;
const char kNotificationTitle[] =;

const char kNotificationDir[] =;
const char kNotificationLang[] =;
const char kNotificationBody[] =;
const char kNotificationTag[] =;
const char kNotificationEmptyTag[] =;
const char kNotificationImage[] =;
const char kNotificationIcon[] =;
const char kNotificationIconInvalid[] =;
const char kNotificationBadge[] =;
const unsigned kNotificationVibration[] =;
const uint64_t kNotificationTimestamp =;
const bool kNotificationRenotify =;
const bool kNotificationSilent =;
const bool kNotificationRequireInteraction =;

const mojom::blink::NotificationActionType kBlinkNotificationActionType =;
const char kNotificationActionType[] =;
const char kNotificationActionAction[] =;
const char kNotificationActionTitle[] =;
const char kNotificationActionIcon[] =;
const char kNotificationActionPlaceholder[] =;

const unsigned kNotificationVibrationUnnormalized[] =;
const int kNotificationVibrationNormalized[] =;

TEST(NotificationDataTest, ReflectProperties) {}

TEST(NotificationDataTest, SilentNotificationWithVibration) {}

TEST(NotificationDataTest, ActionTypeButtonWithPlaceholder) {}

TEST(NotificationDataTest, RenotifyWithEmptyTag) {}

TEST(NotificationDataTest, InvalidIconUrls) {}

TEST(NotificationDataTest, VibrationNormalization) {}

TEST(NotificationDataTest, DefaultTimestampValue) {}

TEST(NotificationDataTest, DirectionValues) {}

TEST(NotificationDataTest, MaximumActionCount) {}

TEST(NotificationDataTest, RejectsTriggerTimestampOverAYear) {}

}  // namespace
}  // namespace blink