chromium/third_party/blink/renderer/core/messaging/message_port_test.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/messaging/message_port.h"

#include "base/run_loop.h"
#include "base/test/bind.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/messaging/transferable_message.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/messaging/blink_transferable_message.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/core/testing/wait_for_event.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {
namespace {

BlinkTransferableMessage MakeNullMessage() {}

TEST(MessagePortTest, DispatchMessageEvent) {}

TEST(MessagePortTest, DispatchMessageErrorEvent_LockedAgentCluster) {}

TEST(MessagePortTest, DispatchMessageErrorEvent_CannotDeserialize) {}

}  // namespace
}  // namespace blink