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/test/fake_network_dispatcher.h" | 5 #include "remoting/test/fake_network_dispatcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
10 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
11 | 13 |
12 namespace remoting { | 14 namespace remoting { |
13 | 15 |
14 FakeNetworkDispatcher::FakeNetworkDispatcher() | 16 FakeNetworkDispatcher::FakeNetworkDispatcher() |
15 : allocated_address_(0) { | 17 : allocated_address_(0) { |
16 } | 18 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 return; | 81 return; |
80 } | 82 } |
81 } | 83 } |
82 | 84 |
83 // Call ReceivePacket() without lock held. It's safe because at this point we | 85 // Call ReceivePacket() without lock held. It's safe because at this point we |
84 // know that |node| belongs to the current thread. | 86 // know that |node| belongs to the current thread. |
85 node->ReceivePacket(from, to, data, data_size); | 87 node->ReceivePacket(from, to, data, data_size); |
86 } | 88 } |
87 | 89 |
88 } // namespace remoting | 90 } // namespace remoting |
OLD | NEW |