| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_BASE_TEST_COMPLETION_CALLBACK_H_ | 5 #ifndef NET_BASE_TEST_COMPLETION_CALLBACK_H_ |
| 6 #define NET_BASE_TEST_COMPLETION_CALLBACK_H_ | 6 #define NET_BASE_TEST_COMPLETION_CALLBACK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback_old.h" | |
| 10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 11 #include "base/tuple.h" | 10 #include "base/tuple.h" |
| 12 #include "net/base/completion_callback.h" | 11 #include "net/base/completion_callback.h" |
| 13 | 12 |
| 14 //----------------------------------------------------------------------------- | 13 //----------------------------------------------------------------------------- |
| 15 // completion callback helper | 14 // completion callback helper |
| 16 | 15 |
| 17 // A helper class for completion callbacks, designed to make it easy to run | 16 // A helper class for completion callbacks, designed to make it easy to run |
| 18 // tests involving asynchronous operations. Just call WaitForResult to wait | 17 // tests involving asynchronous operations. Just call WaitForResult to wait |
| 19 // for the asynchronous operation to complete. | 18 // for the asynchronous operation to complete. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 52 |
| 54 private: | 53 private: |
| 55 const CompletionCallback callback_; | 54 const CompletionCallback callback_; |
| 56 | 55 |
| 57 DISALLOW_COPY_AND_ASSIGN(TestCompletionCallback); | 56 DISALLOW_COPY_AND_ASSIGN(TestCompletionCallback); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namespace net | 59 } // namespace net |
| 61 | 60 |
| 62 #endif // NET_BASE_TEST_COMPLETION_CALLBACK_H_ | 61 #endif // NET_BASE_TEST_COMPLETION_CALLBACK_H_ |
| OLD | NEW |