#include "ipcz/node_link_memory.h"
#include <utility>
#include <vector>
#include "ipcz/driver_memory.h"
#include "ipcz/driver_transport.h"
#include "ipcz/features.h"
#include "ipcz/ipcz.h"
#include "ipcz/link_side.h"
#include "ipcz/node.h"
#include "ipcz/node_link.h"
#include "ipcz/node_link_memory.h"
#include "ipcz/node_name.h"
#include "ipcz/parcel.h"
#include "reference_drivers/sync_reference_driver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "util/ref_counted.h"
namespace ipcz {
namespace {
const IpczDriver& kTestDriver = …;
constexpr NodeName kTestNonBrokerName(2, 3);
constexpr NodeName kOtherTestNonBrokerName(3, 5);
class NodeLinkMemoryTest : public testing::Test { … };
TEST_F(NodeLinkMemoryTest, BasicAllocAndFree) { … }
TEST_F(NodeLinkMemoryTest, Zero) { … }
TEST_F(NodeLinkMemoryTest, MinimumSize) { … }
TEST_F(NodeLinkMemoryTest, RoundUpSize) { … }
TEST_F(NodeLinkMemoryTest, SharedPrimaryBuffer) { … }
TEST_F(NodeLinkMemoryTest, ExpandCapacity) { … }
TEST_F(NodeLinkMemoryTest, LimitedCapacityExpansion) { … }
TEST_F(NodeLinkMemoryTest, OversizedAllocation) { … }
TEST_F(NodeLinkMemoryTest, NewBlockSizes) { … }
TEST_F(NodeLinkMemoryTest, ParcelDataAllocation) { … }
}
}