#include "ipcz/message.h"
#include <cstdint>
#include <queue>
#include <utility>
#include <vector>
#include "ipcz/driver_object.h"
#include "ipcz/driver_transport.h"
#include "ipcz/ipcz.h"
#include "ipcz/node.h"
#include "ipcz/test_messages.h"
#include "test/mock_driver.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "util/ref_counted.h"
namespace ipcz {
namespace {
_;
constexpr IpczDriverHandle kTransportHandle = …;
struct ReceivedMessage { … };
class MessageTest : public testing::Test { … };
TEST_F(MessageTest, BasicMessage) { … }
TEST_F(MessageTest, DataArray) { … }
TEST_F(MessageTest, DriverObject) { … }
TEST_F(MessageTest, DriverObjectArray) { … }
TEST_F(MessageTest, ShortMessage) { … }
TEST_F(MessageTest, ShortHeader) { … }
TEST_F(MessageTest, HeaderOverflow) { … }
TEST_F(MessageTest, ShortParamsHeader) { … }
TEST_F(MessageTest, ShortParams) { … }
TEST_F(MessageTest, ParamsOverflow) { … }
TEST_F(MessageTest, ArrayOffsetOverflow) { … }
TEST_F(MessageTest, ArraySizeOverflow) { … }
TEST_F(MessageTest, ArrayElementsOverflow) { … }
TEST_F(MessageTest, MalformedDriverObject) { … }
TEST_F(MessageTest, DriverObjectClaimedTwice) { … }
TEST_F(MessageTest, UnclaimedDriverObjects) { … }
TEST_F(MessageTest, AcceptOldVersions) { … }
}
}