#include <chrono>
#include <string>
#include <string_view>
#include <thread>
#include "ipcz/ipcz.h"
#include "test/multinode_test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ipcz {
namespace {
MergePortalsTestNode;
MergePortalsTest;
constexpr std::string_view kMessage1 = …;
constexpr std::string_view kMessage2 = …;
MULTINODE_TEST_NODE(MergePortalsTestNode, MergeWithInitialPortalClient) { … }
MULTINODE_TEST(MergePortalsTest, MergeWithInitialPortal) { … }
MULTINODE_TEST(MergePortalsTest, MergeWithClosedLocalPeer) { … }
MULTINODE_TEST_NODE(MergePortalsTestNode, MergeWithClosedRemotePeerClient) { … }
MULTINODE_TEST(MergePortalsTest, MergeWithClosedRemotePeer) { … }
constexpr size_t kMergeComplexRoutesNumIterations = …;
MULTINODE_TEST_NODE(MergePortalsTestNode, MergeComplexRoutesClient) { … }
MULTINODE_TEST(MergePortalsTest, MergeComplexRoutes) { … }
MULTINODE_TEST_NODE(MergePortalsTestNode, RaceWithDisconnectClient) { … }
MULTINODE_TEST(MergePortalsTest, RaceWithDisconnect) { … }
}
}