Searched refs:MockWriteResult (Results 1 – 4 of 4) sorted by relevance
/external/chromium_org/net/ftp/ |
D | ftp_network_transaction_unittest.cc | 66 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE { in OnWrite() 68 return MockWriteResult(ASYNC, data.length()); in OnWrite() 116 return MockWriteResult(ASYNC, ERR_UNEXPECTED); in OnWrite() 162 MockWriteResult Verify(const std::string& expected, in Verify() 171 return MockWriteResult(ASYNC, data.length()); in Verify() 173 return MockWriteResult(ASYNC, ERR_UNEXPECTED); in Verify() 176 MockWriteResult Verify(const std::string& expected, in Verify() 208 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE { in OnWrite() 210 return MockWriteResult(ASYNC, data.length()); in OnWrite() 235 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE { in OnWrite() [all …]
|
/external/chromium_org/net/socket/ |
D | socket_test_util.cc | 199 MockWriteResult StaticSocketDataProvider::OnWrite(const std::string& data) { in OnWrite() 202 return MockWriteResult(SYNCHRONOUS, data.length()); in OnWrite() 208 return MockWriteResult(SYNCHRONOUS, ERR_UNEXPECTED); in OnWrite() 228 return MockWriteResult(SYNCHRONOUS, ERR_UNEXPECTED); in OnWrite() 232 return MockWriteResult(w->mode, result); in OnWrite() 338 MockWriteResult DelayedSocketData::OnWrite(const std::string& data) { in OnWrite() 339 MockWriteResult rv = StaticSocketDataProvider::OnWrite(data); in OnWrite() 422 MockWriteResult OrderedSocketData::OnWrite(const std::string& data) { in OnWrite() 562 MockWriteResult DeterministicSocketData::OnWrite(const std::string& data) { in OnWrite() 569 return MockWriteResult(SYNCHRONOUS, ERR_UNEXPECTED); in OnWrite() [all …]
|
D | socket_test_util.h | 187 struct MockWriteResult { struct 188 MockWriteResult(IoMode io_mode, int result) : mode(io_mode), result(result) {} in MockWriteResult() argument 207 virtual MockWriteResult OnWrite(const std::string& data) = 0; argument 266 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE; 296 virtual MockWriteResult OnWrite(const std::string& data) = 0; 380 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE; 434 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE; 568 virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE;
|
/external/chromium_org/jingle/glue/ |
D | chrome_async_socket_unittest.cc | 60 virtual net::MockWriteResult OnWrite(const std::string& data) OVERRIDE { in OnWrite() 65 return net::MockWriteResult(mock_write.mode, mock_write.result); in OnWrite() 70 return net::MockWriteResult(net::SYNCHRONOUS, net::ERR_UNEXPECTED); in OnWrite() 72 return net::MockWriteResult(mock_write.mode, data.size()); in OnWrite()
|