Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: net/socket/ssl_server_socket_unittest.cc

Issue 8889036: Revert 113699 - base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_server_socket_nss.cc ('k') | net/socket/tcp_client_socket_libevent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_server_socket_unittest.cc
===================================================================
--- net/socket/ssl_server_socket_unittest.cc (revision 113718)
+++ net/socket/ssl_server_socket_unittest.cc (working copy)
@@ -85,14 +85,6 @@
&FakeDataChannel::DoReadCallback));
return buf_len;
}
- virtual int Write(IOBuffer* buf, int buf_len,
- const CompletionCallback& callback) {
- data_.push(new net::DrainableIOBuffer(buf, buf_len));
- MessageLoop::current()->PostTask(
- FROM_HERE, task_factory_.NewRunnableMethod(
- &FakeDataChannel::DoReadCallback));
- return buf_len;
- }
private:
void DoReadCallback() {
@@ -168,12 +160,6 @@
buf_len = rand() % buf_len + 1;
return outgoing_->Write(buf, buf_len, callback);
}
- virtual int Write(IOBuffer* buf, int buf_len,
- const CompletionCallback& callback) {
- // Write random number of bytes.
- buf_len = rand() % buf_len + 1;
- return outgoing_->Write(buf, buf_len, callback);
- }
virtual bool SetReceiveBufferSize(int32 size) {
return true;
Property changes on: net/socket/ssl_server_socket_unittest.cc
___________________________________________________________________
Deleted: svn:mergeinfo
« no previous file with comments | « net/socket/ssl_server_socket_nss.cc ('k') | net/socket/tcp_client_socket_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698