chromium/third_party/ipcz/src/ipcz/message_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 "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 =;

// Structure used to temporarily store messages transmitted through a transport,
// so that tests can inspect and/or deserialize them later.
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) {}

}  // namespace
}  // namespace ipcz