diff options
author | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 00:32:09 +0000 |
---|---|---|
committer | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 00:32:09 +0000 |
commit | 085f230615d0b781635bc4f68218c42c5928c690 (patch) | |
tree | 10b6be29c48f566859ba4b4257aaca7a136c38cb /net/spdy | |
parent | 4ad6c3a7125f38123ad525861215f098599e12e5 (diff) | |
download | chromium_src-085f230615d0b781635bc4f68218c42c5928c690.zip chromium_src-085f230615d0b781635bc4f68218c42c5928c690.tar.gz chromium_src-085f230615d0b781635bc4f68218c42c5928c690.tar.bz2 |
Disk cache: Make sure that references to IO buffers are
released before invoking the callbacks.
BUG=131272
TEST=net_unittests
Review URL: https://chromiumcodereview.appspot.com/10542068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r-- | net/spdy/spdy_websocket_stream_spdy2_unittest.cc | 2 | ||||
-rw-r--r-- | net/spdy/spdy_websocket_stream_spdy3_unittest.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/spdy/spdy_websocket_stream_spdy2_unittest.cc b/net/spdy/spdy_websocket_stream_spdy2_unittest.cc index 36cc317..5f468c9 100644 --- a/net/spdy/spdy_websocket_stream_spdy2_unittest.cc +++ b/net/spdy/spdy_websocket_stream_spdy2_unittest.cc @@ -177,7 +177,7 @@ class SpdyWebSocketStreamSpdy2Test : public testing::Test { } void DoSync(SpdyWebSocketStreamEvent* event) { - sync_callback_.SetResult(OK); + sync_callback_.callback().Run(OK); } protected: diff --git a/net/spdy/spdy_websocket_stream_spdy3_unittest.cc b/net/spdy/spdy_websocket_stream_spdy3_unittest.cc index 40d80c2..5a21e66 100644 --- a/net/spdy/spdy_websocket_stream_spdy3_unittest.cc +++ b/net/spdy/spdy_websocket_stream_spdy3_unittest.cc @@ -177,7 +177,7 @@ class SpdyWebSocketStreamSpdy3Test : public testing::Test { } void DoSync(SpdyWebSocketStreamEvent* event) { - sync_callback_.SetResult(OK); + sync_callback_.callback().Run(OK); } protected: |