Home
last modified time | relevance | path

Searched refs:payload_write (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/net/socket/
Dsocks5_client_socket_unittest.cc114 const std::string payload_write = "random data"; in TEST_F() local
131 MockWrite(ASYNC, payload_write.data(), payload_write.size()) }; in TEST_F()
163 scoped_refptr<IOBuffer> buffer(new IOBuffer(payload_write.size())); in TEST_F()
164 memcpy(buffer->data(), payload_write.data(), payload_write.size()); in TEST_F()
166 buffer.get(), payload_write.size(), callback_.callback()); in TEST_F()
169 EXPECT_EQ(static_cast<int>(payload_write.size()), rv); in TEST_F()
Dsocks_client_socket_unittest.cc138 const std::string payload_write = "random data"; in TEST_F() local
143 MockWrite(ASYNC, payload_write.data(), payload_write.size()) }; in TEST_F()
175 scoped_refptr<IOBuffer> buffer(new IOBuffer(payload_write.size())); in TEST_F()
176 memcpy(buffer->data(), payload_write.data(), payload_write.size()); in TEST_F()
178 buffer.get(), payload_write.size(), callback_.callback()); in TEST_F()
181 EXPECT_EQ(static_cast<int>(payload_write.size()), rv); in TEST_F()