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

Side by Side Diff: net/base/test_completion_callback.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 4 years, 12 months 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 unified diff | Download patch
« no previous file with comments | « net/base/static_cookie_policy.h ('k') | net/base/test_completion_callback_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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 7
8 #include <stdint.h>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
11 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
12 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
13 16
14 //----------------------------------------------------------------------------- 17 //-----------------------------------------------------------------------------
15 // completion callback helper 18 // completion callback helper
16 19
17 // A helper class for completion callbacks, designed to make it easy to run 20 // A helper class for completion callbacks, designed to make it easy to run
18 // tests involving asynchronous operations. Just call WaitForResult to wait 21 // tests involving asynchronous operations. Just call WaitForResult to wait
19 // for the asynchronous operation to complete. Uses a RunLoop to spin the 22 // for the asynchronous operation to complete. Uses a RunLoop to spin the
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 private: 148 private:
146 void SetResult(int result) override; 149 void SetResult(int result) override;
147 150
148 IOBuffer* buffer_; 151 IOBuffer* buffer_;
149 DISALLOW_COPY_AND_ASSIGN(ReleaseBufferCompletionCallback); 152 DISALLOW_COPY_AND_ASSIGN(ReleaseBufferCompletionCallback);
150 }; 153 };
151 154
152 } // namespace net 155 } // namespace net
153 156
154 #endif // NET_BASE_TEST_COMPLETION_CALLBACK_H_ 157 #endif // NET_BASE_TEST_COMPLETION_CALLBACK_H_
OLDNEW
« no previous file with comments | « net/base/static_cookie_policy.h ('k') | net/base/test_completion_callback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698