diff options
Diffstat (limited to 'net/disk_cache/disk_cache_test_util.h')
-rw-r--r-- | net/disk_cache/disk_cache_test_util.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/net/disk_cache/disk_cache_test_util.h b/net/disk_cache/disk_cache_test_util.h index f6d1f46..2c9a573 100644 --- a/net/disk_cache/disk_cache_test_util.h +++ b/net/disk_cache/disk_cache_test_util.h @@ -85,17 +85,20 @@ class MessageLoopHelper { class CallbackTest { public: // Creates a new CallbackTest object. When the callback is called, it will - // update |helper| with the result of the call. If |reuse| is false and a - // callback is called more than once, or if |reuse| is true and a callback - // is called more than twice, an error will be reported to |helper|. + // update |helper|. If |reuse| is false and a callback is called more than + // once, or if |reuse| is true and a callback is called more than twice, an + // error will be reported to |helper|. CallbackTest(MessageLoopHelper* helper, bool reuse); ~CallbackTest(); - void Run(int params); + void Run(int result); + + int last_result() const { return last_result_; } private: MessageLoopHelper* helper_; int reuse_; + int last_result_; DISALLOW_COPY_AND_ASSIGN(CallbackTest); }; |