#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/push_messaging/push_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_arraybuffer_arraybufferview_string.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_push_subscription_options_init.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/modules/push_messaging/push_subscription_options.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/text/base64.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
const unsigned kMaxKeyLength = …;
const unsigned kApplicationServerKeyLength = …;
const uint8_t kApplicationServerKey[kApplicationServerKeyLength] = …;
void IsApplicationServerKeyValid(PushSubscriptionOptions* output) { … }
TEST(PushManagerTest, ValidSenderKey) { … }
inline bool RemovePad(UChar character) { … }
TEST(PushManagerTest, ValidBase64URLWithoutPaddingSenderKey) { … }
TEST(PushManagerTest, InvalidSenderKeyLength) { … }
TEST(PushManagerTest, InvalidBase64SenderKey) { … }
TEST(PushManagerTest, InvalidBase64URLWithPaddingSenderKey) { … }
}
}