| 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/fake_datagram_socket.h" | 5 #include "remoting/protocol/fake_datagram_socket.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "net/base/address_list.h" | 14 #include "net/base/address_list.h" |
| 15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
| 16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace remoting { | 19 namespace remoting { |
| 20 namespace protocol { | 20 namespace protocol { |
| 21 | 21 |
| 22 FakeDatagramSocket::FakeDatagramSocket() | 22 FakeDatagramSocket::FakeDatagramSocket() |
| 23 : input_pos_(0), | 23 : input_pos_(0), |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 callback.Run(std::move(owned_socket)); | 188 callback.Run(std::move(owned_socket)); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void FakeDatagramChannelFactory::CancelChannelCreation( | 191 void FakeDatagramChannelFactory::CancelChannelCreation( |
| 192 const std::string& name) { | 192 const std::string& name) { |
| 193 channels_.erase(name); | 193 channels_.erase(name); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace protocol | 196 } // namespace protocol |
| 197 } // namespace remoting | 197 } // namespace remoting |
| OLD | NEW |