Searched refs:kSending (Results 1 – 1 of 1) sorted by relevance
/external/libchrome/base/ |
D | sync_socket_unittest.cc | 73 const int kSending = 123; in SendReceivePeek() local 74 static_assert(sizeof(kSending) == sizeof(received), "invalid data size"); in SendReceivePeek() 81 ASSERT_EQ(sizeof(kSending), socket_a->Send(&kSending, sizeof(kSending))); 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() 84 ASSERT_EQ(kSending, received); in SendReceivePeek() 91 ASSERT_EQ(sizeof(kSending), socket_b->Send(&kSending, sizeof(kSending))); 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() 94 ASSERT_EQ(kSending, received); in SendReceivePeek()
|