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

Side by Side Diff: mojo/services/files/c/tests/util_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
« no previous file with comments | « mojo/services/files/c/tests/test_utils_unittest.cc ('k') | mojo/services/files/cpp/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/util.h" 5 #include "files/c/lib/util.h"
6 6
7 #include "files/public/interfaces/types.mojom.h" 7 #include "files/interfaces/types.mojom.h"
8 #include "mojo/public/cpp/system/macros.h" 8 #include "mojo/public/cpp/system/macros.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace mojio { 11 namespace mojio {
12 namespace { 12 namespace {
13 13
14 // TODO(vtl): This test is pretty lame until |mojo::files::Error| can also 14 // TODO(vtl): This test is pretty lame until |mojo::files::Error| can also
15 // encapsulate "real" errno values. 15 // encapsulate "real" errno values.
16 TEST(UtilTest, ErrorToErrno) { 16 TEST(UtilTest, ErrorToErrno) {
17 const struct ExpectedMapping { 17 const struct ExpectedMapping {
(...skipping 12 matching lines...) Expand all
30 }; 30 };
31 31
32 for (size_t i = 0; i < MOJO_ARRAYSIZE(kExpectedMappings); i++) { 32 for (size_t i = 0; i < MOJO_ARRAYSIZE(kExpectedMappings); i++) {
33 const ExpectedMapping& m = kExpectedMappings[i]; 33 const ExpectedMapping& m = kExpectedMappings[i];
34 EXPECT_EQ(m.to, ErrorToErrno(m.from)) << "i=" << i << ", m.from=" << m.from; 34 EXPECT_EQ(m.to, ErrorToErrno(m.from)) << "i=" << i << ", m.from=" << m.from;
35 } 35 }
36 } 36 }
37 37
38 } // namespace 38 } // namespace
39 } // namespace mojio 39 } // namespace mojio
OLDNEW
« no previous file with comments | « mojo/services/files/c/tests/test_utils_unittest.cc ('k') | mojo/services/files/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698