OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 #include "gtest/gtest.h" | 8 #include "gtest/gtest.h" |
9 #include "nacl_mounts/kernel_proxy.h" | 9 #include "nacl_io/kernel_proxy.h" |
10 #include "nacl_mounts/kernel_intercept.h" | 10 #include "nacl_io/kernel_intercept.h" |
11 #include "nacl_mounts/kernel_wrap.h" | 11 #include "nacl_io/kernel_wrap.h" |
12 #include "kernel_proxy_mock.h" | 12 #include "kernel_proxy_mock.h" |
13 | 13 |
14 using ::testing::StrEq; | 14 using ::testing::StrEq; |
15 using ::testing::_; | 15 using ::testing::_; |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 #define COMPARE_FIELD(f) \ | 19 #define COMPARE_FIELD(f) \ |
20 if (arg->f != statbuf->f) { \ | 20 if (arg->f != statbuf->f) { \ |
21 *result_listener << "mismatch of field \""#f"\". " \ | 21 *result_listener << "mismatch of field \""#f"\". " \ |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 TEST_F(KernelWrapTest, unlink) { | 224 TEST_F(KernelWrapTest, unlink) { |
225 EXPECT_CALL(mock, unlink(StrEq("unlink"))).Times(1); | 225 EXPECT_CALL(mock, unlink(StrEq("unlink"))).Times(1); |
226 unlink("unlink"); | 226 unlink("unlink"); |
227 } | 227 } |
228 | 228 |
229 TEST_F(KernelWrapTest, write) { | 229 TEST_F(KernelWrapTest, write) { |
230 EXPECT_CALL(mock, write(6789, NULL, 7891)).Times(1); | 230 EXPECT_CALL(mock, write(6789, NULL, 7891)).Times(1); |
231 write(6789, NULL, 7891); | 231 write(6789, NULL, 7891); |
232 } | 232 } |
OLD | NEW |