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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698