chromium/extensions/renderer/api/messaging/messaging_util_unittest.cc

// Copyright 2017 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 "extensions/renderer/api/messaging/messaging_util.h"

#include <memory>
#include <string_view>

#include "base/strings/stringprintf.h"
#include "extensions/common/api/messaging/message.h"
#include "extensions/common/api/messaging/messaging_endpoint.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/mojom/context_type.mojom.h"
#include "extensions/common/mojom/message_port.mojom-shared.h"
#include "extensions/renderer/bindings/api_binding_test.h"
#include "extensions/renderer/bindings/api_binding_test_util.h"
#include "extensions/renderer/native_extension_bindings_system_test_base.h"
#include "extensions/renderer/script_context.h"
#include "gin/converter.h"
#include "v8/include/v8.h"

namespace extensions {

MessagingUtilTest;

TEST_F(MessagingUtilTest, TestMaximumMessageSize) {}

TEST_F(MessagingUtilTest, TestParseMessageOptionsFrameId) {}

// Tests the result of GetEventForChannel().
TEST_F(MessagingUtilTest, TestGetEventForChannel) {}

MessagingUtilWithSystemTest;

TEST_F(MessagingUtilWithSystemTest, TestGetTargetIdFromExtensionContext) {}

TEST_F(MessagingUtilWithSystemTest, TestGetTargetIdFromWebContext) {}

TEST_F(MessagingUtilWithSystemTest, TestGetTargetIdFromUserScriptContext) {}

}  // namespace extensions