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

Side by Side Diff: mojo/services/files/c/tests/directory_wrapper_unittest.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "files/public/c/lib/directory_wrapper.h" 5 #include "files/c/lib/directory_wrapper.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "files/public/c/lib/fd_impl.h" 11 #include "files/c/lib/fd_impl.h"
12 #include "files/public/c/mojio_fcntl.h" 12 #include "files/c/mojio_fcntl.h"
13 #include "files/public/c/mojio_sys_stat.h" 13 #include "files/c/mojio_sys_stat.h"
14 #include "files/public/c/tests/mock_errno_impl.h" 14 #include "files/c/tests/mock_errno_impl.h"
15 #include "files/public/c/tests/mojio_impl_test_base.h" 15 #include "files/c/tests/mojio_impl_test_base.h"
16 #include "files/public/c/tests/test_utils.h" 16 #include "files/c/tests/test_utils.h"
17 17
18 namespace mojio { 18 namespace mojio {
19 namespace { 19 namespace {
20 20
21 using DirectoryWrapperTest = mojio::test::MojioImplTestBase; 21 using DirectoryWrapperTest = mojio::test::MojioImplTestBase;
22 22
23 const int kLastErrorSentinel = -12345; 23 const int kLastErrorSentinel = -12345;
24 24
25 // Note: |Open()|'s |mode| is currently basically ignored, so there's nothing to 25 // Note: |Open()|'s |mode| is currently basically ignored, so there's nothing to
26 // test yet. If this ever changes, we'll have to test it. 26 // test yet. If this ever changes, we'll have to test it.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 EXPECT_FALSE(dw.Open(nullptr, MOJIO_O_WRONLY | MOJIO_O_CREAT, MOJIO_S_IRWXU)); 192 EXPECT_FALSE(dw.Open(nullptr, MOJIO_O_WRONLY | MOJIO_O_CREAT, MOJIO_S_IRWXU));
193 EXPECT_EQ(EFAULT, errno_impl.Get()); 193 EXPECT_EQ(EFAULT, errno_impl.Get());
194 194
195 errno_impl.Reset(kLastErrorSentinel); 195 errno_impl.Reset(kLastErrorSentinel);
196 EXPECT_FALSE(dw.Chdir(nullptr)); 196 EXPECT_FALSE(dw.Chdir(nullptr));
197 EXPECT_EQ(EFAULT, errno_impl.Get()); 197 EXPECT_EQ(EFAULT, errno_impl.Get());
198 } 198 }
199 199
200 } // namespace 200 } // namespace
201 } // namespace mojio 201 } // namespace mojio
OLDNEW
« no previous file with comments | « mojo/services/files/c/mojio_unistd.h ('k') | mojo/services/files/c/tests/errno_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698