| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "remoting/protocol/chromium_socket_factory.h" | 5 #include "remoting/protocol/chromium_socket_factory.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/webrtc/base/asyncpacketsocket.h" | 15 #include "third_party/webrtc/base/asyncpacketsocket.h" |
| 15 #include "third_party/webrtc/base/socketaddress.h" | 16 #include "third_party/webrtc/base/socketaddress.h" |
| 16 | 17 |
| 17 namespace remoting { | 18 namespace remoting { |
| 18 namespace protocol { | 19 namespace protocol { |
| 19 | 20 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 sending_socket->SendTo(test_packet.data(), test_packet.size(), | 110 sending_socket->SendTo(test_packet.data(), test_packet.size(), |
| 110 rtc::SocketAddress("::1", 0), | 111 rtc::SocketAddress("::1", 0), |
| 111 rtc::PacketOptions()); | 112 rtc::PacketOptions()); |
| 112 | 113 |
| 113 // Verify that socket is still usable. | 114 // Verify that socket is still usable. |
| 114 VerifyCanSendAndReceive(sending_socket.get()); | 115 VerifyCanSendAndReceive(sending_socket.get()); |
| 115 } | 116 } |
| 116 | 117 |
| 117 } // namespace protocol | 118 } // namespace protocol |
| 118 } // namespace remoting | 119 } // namespace remoting |
| OLD | NEW |