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 #include "net/socket/buffered_write_stream_socket.h" | 5 #include "net/socket/buffered_write_stream_socket.h" |
6 | 6 |
7 #include "base/message_loop.h" | |
8 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
11 #include "net/base/net_log.h" | 11 #include "net/base/net_log.h" |
12 #include "net/socket/socket_test_util.h" | 12 #include "net/socket/socket_test_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 class BufferedWriteStreamSocketTest : public testing::Test { | 19 class BufferedWriteStreamSocketTest : public testing::Test { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 TestWrite("abc"); | 114 TestWrite("abc"); |
115 data_->RunFor(1); | 115 data_->RunFor(1); |
116 TestWrite("def"); | 116 TestWrite("def"); |
117 data_->RunFor(1); | 117 data_->RunFor(1); |
118 Finish(); | 118 Finish(); |
119 } | 119 } |
120 | 120 |
121 } // anonymous namespace | 121 } // anonymous namespace |
122 | 122 |
123 } // namespace net | 123 } // namespace net |
OLD | NEW |