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

Side by Side Diff: native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc

Issue 1559463002: [NaCl SDK] Don't include gtest/gmock in library form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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
OLDNEW
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"
19 #include "gtest/gtest.h" 18 #include "gtest/gtest.h"
20 #include "nacl_io/kernel_intercept.h" 19 #include "nacl_io/kernel_intercept.h"
21 #include "nacl_io/kernel_proxy.h" 20 #include "nacl_io/kernel_proxy.h"
22 #include "nacl_io/ossocket.h" 21 #include "nacl_io/ossocket.h"
23 #include "nacl_io/ostypes.h" 22 #include "nacl_io/ostypes.h"
24 #include "ppapi/cpp/message_loop.h" 23 #include "ppapi/cpp/message_loop.h"
25 #include "ppapi_simple/ps.h" 24 #include "ppapi_simple/ps.h"
26 25
27 #ifdef PROVIDES_SOCKET_API 26 #ifdef PROVIDES_SOCKET_API
28 27
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 // IP_MULTICAST_LOOP 1006 // IP_MULTICAST_LOOP
1008 ASSERT_EQ( 1007 ASSERT_EQ(
1009 0, ki_setsockopt(sock2_, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, loop_len)); 1008 0, ki_setsockopt(sock2_, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, loop_len));
1010 ASSERT_EQ(1, loop); 1009 ASSERT_EQ(1, loop);
1011 ASSERT_EQ(sizeof(loop), loop_len); 1010 ASSERT_EQ(sizeof(loop), loop_len);
1012 1011
1013 EXPECT_EQ(0, Bind(sock2_, LOCAL_HOST, PORT2)); 1012 EXPECT_EQ(0, Bind(sock2_, LOCAL_HOST, PORT2));
1014 } 1013 }
1015 1014
1016 #endif // PROVIDES_SOCKET_API 1015 #endif // PROVIDES_SOCKET_API
OLDNEW
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_socket_test/example.dsc ('k') | native_client_sdk/src/tests/nacl_io_test/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698