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

Unified Diff: net/base/test_completion_callback.h

Issue 501099: Http cache: Add a test to make sure that the cache... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/test_completion_callback.h
===================================================================
--- net/base/test_completion_callback.h (revision 34517)
+++ net/base/test_completion_callback.h (working copy)
@@ -7,6 +7,7 @@
#include "base/message_loop.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_errors.h"
//-----------------------------------------------------------------------------
// completion callback helper
@@ -38,6 +39,12 @@
return result_;
}
+ int GetResult(int result) {
+ if (net::ERR_IO_PENDING != result)
+ return result;
+ return WaitForResult();
+ }
+
bool have_result() const { return have_result_; }
virtual void RunWithParams(const Tuple1<int>& params) {
« no previous file with comments | « no previous file | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698