Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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__ | |
| OLD | NEW |