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

Unified Diff: mojo/services/files/public/c/tests/util_unittest.cc

Issue 1375313006: For c++, Generate enum classes instead of enum from mojom. (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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/files/public/c/tests/util_unittest.cc
diff --git a/mojo/services/files/public/c/tests/util_unittest.cc b/mojo/services/files/public/c/tests/util_unittest.cc
index 3196d2df1abbcec8516ed4948e8523ad1159e86b..07b43c611cbae71e54dba6f1dfd838087048a442 100644
--- a/mojo/services/files/public/c/tests/util_unittest.cc
+++ b/mojo/services/files/public/c/tests/util_unittest.cc
@@ -18,15 +18,15 @@ TEST(UtilTest, ErrorToErrno) {
mojo::files::Error from;
int to;
} kExpectedMappings[] = {
- {mojo::files::ERROR_OK, 0},
- {mojo::files::ERROR_UNKNOWN, EIO},
- {mojo::files::ERROR_INVALID_ARGUMENT, EINVAL},
- {mojo::files::ERROR_PERMISSION_DENIED, EACCES},
- {mojo::files::ERROR_OUT_OF_RANGE, EINVAL},
- {mojo::files::ERROR_UNIMPLEMENTED, ENOSYS},
- {mojo::files::ERROR_CLOSED, EBADF},
- {mojo::files::ERROR_UNAVAILABLE, EACCES},
- {mojo::files::ERROR_INTERNAL, EIO},
+ {mojo::files::Error::OK, 0},
+ {mojo::files::Error::UNKNOWN, EIO},
+ {mojo::files::Error::INVALID_ARGUMENT, EINVAL},
+ {mojo::files::Error::PERMISSION_DENIED, EACCES},
+ {mojo::files::Error::OUT_OF_RANGE, EINVAL},
+ {mojo::files::Error::UNIMPLEMENTED, ENOSYS},
+ {mojo::files::Error::CLOSED, EBADF},
+ {mojo::files::Error::UNAVAILABLE, EACCES},
+ {mojo::files::Error::INTERNAL, EIO},
};
for (size_t i = 0; i < MOJO_ARRAYSIZE(kExpectedMappings); i++) {
« no previous file with comments | « mojo/services/files/public/c/tests/test_utils.cc ('k') | mojo/services/files/public/cpp/lib/input_stream_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698