OLD | NEW |
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_SPDY_SPDY_STREAM_TEST_UTIL_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ |
6 #define NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ | 6 #define NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_piece.h" | 11 #include "base/strings/string_piece.h" |
12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
13 #include "net/base/test_completion_callback.h" | 13 #include "net/base/test_completion_callback.h" |
14 #include "net/spdy/spdy_stream.h" | 14 #include "net/spdy/spdy_stream.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 // Delegate that calls Close() on |stream_| on OnClose. Used by tests | 20 // Delegate that calls Close() on |stream_| on OnClose. Used by tests |
21 // to make sure that such an action is harmless. | 21 // to make sure that such an action is harmless. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 private: | 116 private: |
117 scoped_refptr<DrainableIOBuffer> buf_; | 117 scoped_refptr<DrainableIOBuffer> buf_; |
118 int body_data_sent_; | 118 int body_data_sent_; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace test | 121 } // namespace test |
122 | 122 |
123 } // namespace net | 123 } // namespace net |
124 | 124 |
125 #endif // NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ | 125 #endif // NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ |
OLD | NEW |