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

Side by Side Diff: media/cast/test/utility/tap_proxy.cc

Issue 1429383002: include what you use: errno.h and string.h in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « media/base/android/webaudio_media_codec_bridge.cc ('k') | media/midi/midi_manager_alsa.cc » ('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 <errno.h>
5 #include <fcntl.h> 6 #include <fcntl.h>
6 #include <linux/if_tun.h> 7 #include <linux/if_tun.h>
7 #include <linux/types.h> 8 #include <linux/types.h>
8 #include <math.h> 9 #include <math.h>
9 #include <net/if.h> 10 #include <net/if.h>
10 #include <netinet/in.h> 11 #include <netinet/in.h>
11 #include <stdio.h> 12 #include <stdio.h>
12 #include <stdlib.h> 13 #include <stdlib.h>
13 #include <sys/ioctl.h> 14 #include <sys/ioctl.h>
14 #include <sys/stat.h> 15 #include <sys/stat.h>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 int fd2 = tun_alloc(argv[2], IFF_TAP); 308 int fd2 = tun_alloc(argv[2], IFF_TAP);
308 309
309 base::MessageLoopForIO message_loop; 310 base::MessageLoopForIO message_loop;
310 last_printout = base::TimeTicks::Now(); 311 last_printout = base::TimeTicks::Now();
311 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass()); 312 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass());
312 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass()); 313 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass());
313 CheckByteCounters(); 314 CheckByteCounters();
314 printf("Press Ctrl-C when done.\n"); 315 printf("Press Ctrl-C when done.\n");
315 message_loop.Run(); 316 message_loop.Run();
316 } 317 }
OLDNEW
« no previous file with comments | « media/base/android/webaudio_media_codec_bridge.cc ('k') | media/midi/midi_manager_alsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698