#include "reference_drivers/socket_transport.h"
#include <string_view>
#include <tuple>
#include <vector>
#include "build/build_config.h"
#include "reference_drivers/file_descriptor.h"
#include "reference_drivers/memfd_memory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/synchronization/notification.h"
namespace ipcz::reference_drivers {
namespace {
SocketTransportTest;
ElementsAreArray;
void DeactivateSync(SocketTransport& transport) { … }
const char kTestMessage1[] = …;
absl::Span<const uint8_t> AsBytes(std::string_view str) { … }
std::string_view AsString(absl::Span<const uint8_t> bytes) { … }
TEST_F(SocketTransportTest, ReadWrite) { … }
TEST_F(SocketTransportTest, Disconnect) { … }
TEST_F(SocketTransportTest, Flood) { … }
TEST_F(SocketTransportTest, DestroyFromIOThread) { … }
TEST_F(SocketTransportTest, SerializeAndDeserialize) { … }
TEST_F(SocketTransportTest, ReadWriteWithFileDescriptor) { … }
}
}