#include "quiche/quic/core/io/socket.h"
#include <string>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "quiche/quic/platform/api/quic_ip_address.h"
#include "quiche/quic/platform/api/quic_ip_address_family.h"
#include "quiche/quic/platform/api/quic_socket_address.h"
#include "quiche/quic/test_tools/test_ip_packets.h"
#include "quiche/common/platform/api/quiche_logging.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/platform/api/quiche_test_loopback.h"
#include "quiche/common/test_tools/quiche_test_utils.h"
namespace quic::test {
namespace {
QuicheTest;
StatusIs;
Lt;
SizeIs;
SocketFd CreateTestSocket(socket_api::SocketProtocol protocol,
bool blocking = true) { … }
SocketFd CreateTestRawSocket(
bool blocking = true,
IpAddressFamily address_family = IpAddressFamily::IP_UNSPEC) { … }
TEST(SocketTest, CreateAndCloseSocket) { … }
TEST(SocketTest, CreateAndCloseRawSocket) { … }
TEST(SocketTest, SetSocketBlocking) { … }
TEST(SocketTest, SetReceiveBufferSize) { … }
TEST(SocketTest, SetSendBufferSize) { … }
TEST(SocketTest, SetIpHeaderIncludedForRaw) { … }
TEST(SocketTest, SetIpHeaderIncludedForRawV6) { … }
TEST(SocketTest, SetIpHeaderIncludedForUdp) { … }
TEST(SocketTest, Connect) { … }
TEST(SocketTest, GetSocketError) { … }
TEST(SocketTest, Bind) { … }
TEST(SocketTest, GetSocketAddress) { … }
TEST(SocketTest, Listen) { … }
TEST(SocketTest, Accept) { … }
TEST(SocketTest, Receive) { … }
TEST(SocketTest, Peek) { … }
TEST(SocketTest, Send) { … }
TEST(SocketTest, SendTo) { … }
TEST(SocketTest, SendToWithConnection) { … }
TEST(SocketTest, SendToForRaw) { … }
TEST(SocketTest, SendToForRawWithIpHeader) { … }
}
}