#include "third_party/blink/public/common/messaging/message_port_descriptor.h"
#include "base/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace {
ExecutionContext* kDummyEc = …;
class LenientMockInstrumentationDelegate
: public MessagePortDescriptor::InstrumentationDelegate { … };
MockInstrumentationDelegate;
_;
Invoke;
}
TEST(MessagePortDescriptorTest, InstrumentationAndSerializationWorks) { … }
TEST(MessagePortDescriptorTestDeathTest, InvalidUsageInstrumentationDelegate) { … }
TEST(MessagePortDescriptorTestDeathTest, InvalidUsageForSerialization) { … }
TEST(MessagePortDescriptorTestDeathTest, InvalidUsageForEntangling) { … }
}