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 "content/browser/renderer_host/p2p/socket_host_tcp.h" | 5 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "base/sys_byteorder.h" | 15 #include "base/sys_byteorder.h" |
15 #include "content/browser/renderer_host/p2p/socket_host_test_utils.h" | 16 #include "content/browser/renderer_host/p2p/socket_host_test_utils.h" |
16 #include "net/socket/stream_socket.h" | 17 #include "net/socket/stream_socket.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 | 20 |
20 using ::testing::_; | 21 using ::testing::_; |
21 using ::testing::DeleteArg; | 22 using ::testing::DeleteArg; |
22 using ::testing::DoAll; | 23 using ::testing::DoAll; |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 base::RunLoop().RunUntilIdle(); | 439 base::RunLoop().RunUntilIdle(); |
439 | 440 |
440 std::string expected_data; | 441 std::string expected_data; |
441 expected_data.append(packet1.begin(), packet1.end()); | 442 expected_data.append(packet1.begin(), packet1.end()); |
442 expected_data.append(packet2.begin(), packet2.end()); | 443 expected_data.append(packet2.begin(), packet2.end()); |
443 | 444 |
444 EXPECT_EQ(expected_data, sent_data_); | 445 EXPECT_EQ(expected_data, sent_data_); |
445 } | 446 } |
446 | 447 |
447 } // namespace content | 448 } // namespace content |
OLD | NEW |