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

Side by Side Diff: native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef __linux__
binji 2013/11/15 17:26:23 !defined(__linux__)
Sam Clegg 2013/11/15 18:13:34 Done.
6
5 #include <unistd.h> 7 #include <unistd.h>
6 8
7 #include <string> 9 #include <string>
8 #include <vector> 10 #include <vector>
9 11
10 #include "gtest/gtest.h" 12 #include "gtest/gtest.h"
11 #include "kernel_proxy_mock.h" 13 #include "kernel_proxy_mock.h"
12 #include "nacl_io/kernel_intercept.h" 14 #include "nacl_io/kernel_intercept.h"
13 #include "nacl_io/kernel_wrap.h" 15 #include "nacl_io/kernel_wrap.h"
14 #include "nacl_io/osmman.h" 16 #include "nacl_io/osmman.h"
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 709
708 TEST_F(KernelWrapTest, socketpair) { 710 TEST_F(KernelWrapTest, socketpair) {
709 int dummy_val; 711 int dummy_val;
710 EXPECT_CALL(mock, socketpair(kDummyInt, kDummyInt2, kDummyInt3, &dummy_val)) 712 EXPECT_CALL(mock, socketpair(kDummyInt, kDummyInt2, kDummyInt3, &dummy_val))
711 .WillOnce(Return(kDummyInt4)); 713 .WillOnce(Return(kDummyInt4));
712 EXPECT_EQ(kDummyInt4, 714 EXPECT_EQ(kDummyInt4,
713 socketpair(kDummyInt, kDummyInt2, kDummyInt3, &dummy_val)); 715 socketpair(kDummyInt, kDummyInt2, kDummyInt3, &dummy_val));
714 } 716 }
715 717
716 #endif // PROVIDES_SOCKET_API 718 #endif // PROVIDES_SOCKET_API
719
720 #endif // __linux__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698