OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
12 #include "net/base/test_completion_callback.h" | 12 #include "net/base/test_completion_callback.h" |
| 13 #include "net/log/net_log_with_source.h" |
13 #include "net/socket/client_socket_handle.h" | 14 #include "net/socket/client_socket_handle.h" |
14 #include "net/socket/socket_test_util.h" | 15 #include "net/socket/socket_test_util.h" |
15 #include "net/socket/transport_client_socket_pool.h" | 16 #include "net/socket/transport_client_socket_pool.h" |
16 #include "net/test/gtest_util.h" | 17 #include "net/test/gtest_util.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest-spi.h" | 19 #include "testing/gtest/include/gtest/gtest-spi.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "testing/platform_test.h" | 21 #include "testing/platform_test.h" |
21 | 22 |
22 using net::test::IsError; | 23 using net::test::IsError; |
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 | 1248 |
1248 Resume(); | 1249 Resume(); |
1249 ASSERT_FALSE(IsPaused()); | 1250 ASSERT_FALSE(IsPaused()); |
1250 ASSERT_TRUE(write_callback_.have_result()); | 1251 ASSERT_TRUE(write_callback_.have_result()); |
1251 ASSERT_EQ(kLen2, write_callback_.WaitForResult()); | 1252 ASSERT_EQ(kLen2, write_callback_.WaitForResult()); |
1252 } | 1253 } |
1253 | 1254 |
1254 } // namespace | 1255 } // namespace |
1255 | 1256 |
1256 } // namespace net | 1257 } // namespace net |
OLD | NEW |