Home
last modified time | relevance | path

Searched refs:socket_a (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
76 ASSERT_EQ(0u, socket_a->Peek()); in SendReceivePeek()
81 ASSERT_EQ(sizeof(kSending), socket_a->Send(&kSending, sizeof(kSending))); in SendReceivePeek()
86 ASSERT_EQ(0u, socket_a->Peek()); in SendReceivePeek()
92 ASSERT_EQ(sizeof(kSending), socket_a->Peek()); in SendReceivePeek()
93 ASSERT_EQ(sizeof(kSending), socket_a->Receive(&received, sizeof(kSending))); in SendReceivePeek()
96 ASSERT_EQ(0u, socket_a->Peek()); in SendReceivePeek()
99 ASSERT_TRUE(socket_a->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()
69 DCHECK_EQ(socket_a->handle_, kInvalidHandle); in CreatePair()
97 socket_a->handle_ = handles[0]; in CreatePair()
248 bool CancelableSyncSocket::CreatePair(CancelableSyncSocket* socket_a, 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);
117 static bool CreatePair(CancelableSyncSocket* socket_a,