#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/public/common/notifications/notification_mojom_traits.h"
#include <optional>
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gtest/include/gtest/gtest.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/skia/include/core/SkBitmap.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "url/gurl.h"
namespace blink {
namespace {
bool ImagesShareDimensionsAndColor(const SkBitmap& lhs, const SkBitmap& rhs) { … }
}
TEST(NotificationStructTraitsTest, NotificationDataRoundtrip) { … }
TEST(NotificationStructTraitsTest, ValidVibrationPattern) { … }
TEST(NotificationStructTraitsTest, TooManyVibrations) { … }
TEST(NotificationStructTraitsTest, TooLongVibrationDuration) { … }
TEST(NotificationStructTraitsTest, TooManyActions) { … }
TEST(NotificationStructTraitsTest, DataExceedsMaximumSize) { … }
TEST(NotificationStructTraitsTest, NotificationResourcesRoundtrip) { … }
}