Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <arpa/inet.h> | 5 #include <arpa/inet.h> |
| 6 #include <errno.h> | 6 #include <errno.h> |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <netinet/in.h> | 8 #include <netinet/in.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| 11 #include <sys/socket.h> | 11 #include <sys/socket.h> |
| 12 #include <sys/stat.h> | 12 #include <sys/stat.h> |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "echo_server.h" | 17 #include "echo_server.h" |
| 18 #include "gmock/gmock.h" | 18 //#include "gmock/gmock.h" |
|
binji
2016/01/04 19:48:21
remove
Sam Clegg
2016/01/05 12:29:05
Done.
| |
| 19 #include "gtest/gtest.h" | 19 #include "gtest/gtest.h" |
| 20 #include "nacl_io/kernel_intercept.h" | 20 #include "nacl_io/kernel_intercept.h" |
| 21 #include "nacl_io/kernel_proxy.h" | 21 #include "nacl_io/kernel_proxy.h" |
| 22 #include "nacl_io/ossocket.h" | 22 #include "nacl_io/ossocket.h" |
| 23 #include "nacl_io/ostypes.h" | 23 #include "nacl_io/ostypes.h" |
| 24 #include "ppapi/cpp/message_loop.h" | 24 #include "ppapi/cpp/message_loop.h" |
| 25 #include "ppapi_simple/ps.h" | 25 #include "ppapi_simple/ps.h" |
| 26 | 26 |
| 27 #ifdef PROVIDES_SOCKET_API | 27 #ifdef PROVIDES_SOCKET_API |
| 28 | 28 |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1007 // IP_MULTICAST_LOOP | 1007 // IP_MULTICAST_LOOP |
| 1008 ASSERT_EQ( | 1008 ASSERT_EQ( |
| 1009 0, ki_setsockopt(sock2_, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, loop_len)); | 1009 0, ki_setsockopt(sock2_, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, loop_len)); |
| 1010 ASSERT_EQ(1, loop); | 1010 ASSERT_EQ(1, loop); |
| 1011 ASSERT_EQ(sizeof(loop), loop_len); | 1011 ASSERT_EQ(sizeof(loop), loop_len); |
| 1012 | 1012 |
| 1013 EXPECT_EQ(0, Bind(sock2_, LOCAL_HOST, PORT2)); | 1013 EXPECT_EQ(0, Bind(sock2_, LOCAL_HOST, PORT2)); |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 #endif // PROVIDES_SOCKET_API | 1016 #endif // PROVIDES_SOCKET_API |
| OLD | NEW |