Home
last modified time | relevance | path

Searched refs:socket_b (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/
Dsync_socket_unittest.cc71 void SendReceivePeek(SyncSocket* socket_a, SyncSocket* socket_b) { in SendReceivePeek() argument
77 ASSERT_EQ(0u, socket_b->Peek()); in SendReceivePeek()
82 ASSERT_EQ(sizeof(kSending), socket_b->Peek()); in SendReceivePeek()
83 ASSERT_EQ(sizeof(kSending), socket_b->Receive(&received, sizeof(kSending))); in SendReceivePeek()
87 ASSERT_EQ(0u, socket_b->Peek()); in SendReceivePeek()
91 ASSERT_EQ(sizeof(kSending), socket_b->Send(&kSending, sizeof(kSending))); in SendReceivePeek()
97 ASSERT_EQ(0u, socket_b->Peek()); in SendReceivePeek()
100 ASSERT_TRUE(socket_b->Close()); in SendReceivePeek()
Dsync_socket_posix.cc67 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) { in CreatePair() argument
68 DCHECK_NE(socket_a, socket_b); in CreatePair()
70 DCHECK_EQ(socket_b->handle_, kInvalidHandle); in CreatePair()
98 socket_b->handle_ = handles[1]; in CreatePair()
249 CancelableSyncSocket* socket_b) { in CreatePair() argument
250 return SyncSocket::CreatePair(socket_a, socket_b); in CreatePair()
Dsync_socket.h53 static bool CreatePair(SyncSocket* socket_a, SyncSocket* socket_b);
118 CancelableSyncSocket* socket_b);