| 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 */ | |
| 5 | 4 |
| 6 #include <string> | 5 #include <string> |
| 7 #include <vector> | 6 #include <vector> |
| 8 #include "gtest/gtest.h" | 7 #include "gtest/gtest.h" |
| 9 #include "nacl_io/kernel_proxy.h" | 8 #include "nacl_io/kernel_proxy.h" |
| 10 #include "nacl_io/kernel_intercept.h" | 9 #include "nacl_io/kernel_intercept.h" |
| 11 #include "nacl_io/kernel_wrap.h" | 10 #include "nacl_io/kernel_wrap.h" |
| 12 #include "kernel_proxy_mock.h" | 11 #include "kernel_proxy_mock.h" |
| 13 | 12 |
| 14 using namespace nacl_io; | 13 using namespace nacl_io; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 const struct utimbuf* times; | 277 const struct utimbuf* times; |
| 279 EXPECT_CALL(mock, utime(StrEq("utime"), times)); | 278 EXPECT_CALL(mock, utime(StrEq("utime"), times)); |
| 280 utime("utime", times); | 279 utime("utime", times); |
| 281 } | 280 } |
| 282 | 281 |
| 283 TEST_F(KernelWrapTest, write) { | 282 TEST_F(KernelWrapTest, write) { |
| 284 EXPECT_CALL(mock, write(6789, NULL, 7891)).Times(1); | 283 EXPECT_CALL(mock, write(6789, NULL, 7891)).Times(1); |
| 285 write(6789, NULL, 7891); | 284 write(6789, NULL, 7891); |
| 286 } | 285 } |
| 287 | 286 |
| OLD | NEW |