Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: remoting/test/fake_network_dispatcher.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/test/fake_network_dispatcher.h ('k') | remoting/test/fake_port_allocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/test/fake_network_dispatcher.h ('k') | remoting/test/fake_port_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698