Searched defs:socket_b (Results 1 - 2 of 2) sorted by relevance

/external/libchrome/base/
H A Dsync_socket_unittest.cc49 void SendReceivePeek(base::SyncSocket* socket_a, base::SyncSocket* socket_b) { argument
55 ASSERT_EQ(0u, socket_b->Peek());
60 ASSERT_EQ(sizeof(kSending), socket_b->Peek());
61 ASSERT_EQ(sizeof(kSending), socket_b->Receive(&received, sizeof(kSending)));
65 ASSERT_EQ(0u, socket_b->Peek());
69 ASSERT_EQ(sizeof(kSending), socket_b->Send(&kSending, sizeof(kSending)));
75 ASSERT_EQ(0u, socket_b->Peek());
78 ASSERT_TRUE(socket_b->Close());
83 SocketType socket_a, socket_b; local
84 ASSERT_TRUE(SocketType::CreatePair(&socket_a, &socket_b));
90 SocketType socket_a, socket_b; local
117 base::CancelableSyncSocket socket_a, socket_b; local
[all...]
H A Dsync_socket_posix.cc66 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) { argument
67 DCHECK_NE(socket_a, socket_b);
69 DCHECK_EQ(socket_b->handle_, kInvalidHandle);
97 socket_b->handle_ = handles[1];
245 CancelableSyncSocket* socket_b) {
246 return SyncSocket::CreatePair(socket_a, socket_b);
244 CreatePair(CancelableSyncSocket* socket_a, CancelableSyncSocket* socket_b) argument

Completed in 125 milliseconds