#ifdef UNSAFE_BUFFERS_BUILD
#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) { … }
TEST_F(MessagingUtilTest, TestGetEventForChannel) { … }
MessagingUtilWithSystemTest;
TEST_F(MessagingUtilWithSystemTest, TestGetTargetIdFromExtensionContext) { … }
TEST_F(MessagingUtilWithSystemTest, TestGetTargetIdFromWebContext) { … }
TEST_F(MessagingUtilWithSystemTest, TestGetTargetIdFromUserScriptContext) { … }
}