| Index: native_client_sdk/src/libraries/nacl_io_test/socket_test.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io_test/socket_test.cc b/native_client_sdk/src/libraries/nacl_io_test/socket_test.cc
|
| index 31a8f5a9d6a02fb6be6809097a0cba7eebf5ca01..6199749fd40d6397810a91c5540ae801c375d06f 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io_test/socket_test.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io_test/socket_test.cc
|
| @@ -1,9 +1,14 @@
|
| // Copyright 2013 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| +
|
| +#include <arpa/inet.h>
|
| #include <errno.h>
|
| #include <fcntl.h>
|
| +#include <netinet/in.h>
|
| #include <pthread.h>
|
| +#include <sys/types.h>
|
| +#include <sys/socket.h>
|
| #include <sys/stat.h>
|
|
|
| #include <map>
|
| @@ -240,16 +245,6 @@ TEST_F(SocketTest, Socket) {
|
| EXPECT_EQ(errno, EAFNOSUPPORT);
|
| EXPECT_LT(ki_socket(AF_INET, SOCK_RAW, 0), 0);
|
| EXPECT_EQ(errno, EPROTONOSUPPORT);
|
| -
|
| - // These four af/protocol combinations should be supported.
|
| - EXPECT_LT(ki_socket(AF_INET, SOCK_STREAM, 0), 0);
|
| - EXPECT_EQ(errno, EACCES);
|
| - EXPECT_LT(ki_socket(AF_INET, SOCK_DGRAM, 0), 0);
|
| - EXPECT_EQ(errno, EACCES);
|
| - EXPECT_LT(ki_socket(AF_INET6, SOCK_STREAM, 0), 0);
|
| - EXPECT_EQ(errno, EACCES);
|
| - EXPECT_LT(ki_socket(AF_INET6, SOCK_DGRAM, 0), 0);
|
| - EXPECT_EQ(errno, EACCES);
|
| }
|
|
|
| TEST_F(SocketTest, Socketpair) {
|
|
|