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

Unified Diff: mojo/services/files/public/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/files/public/c/tests/test_utils_unittest.cc ('k') | mojo/services/files/public/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 07b43c611cbae71e54dba6f1dfd838087048a442..0000000000000000000000000000000000000000
--- a/mojo/services/files/public/c/tests/util_unittest.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "files/public/c/lib/util.h"
-
-#include "files/public/interfaces/types.mojom.h"
-#include "mojo/public/cpp/system/macros.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace mojio {
-namespace {
-
-// TODO(vtl): This test is pretty lame until |mojo::files::Error| can also
-// encapsulate "real" errno values.
-TEST(UtilTest, ErrorToErrno) {
- const struct ExpectedMapping {
- 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},
- };
-
- for (size_t i = 0; i < MOJO_ARRAYSIZE(kExpectedMappings); i++) {
- const ExpectedMapping& m = kExpectedMappings[i];
- EXPECT_EQ(m.to, ErrorToErrno(m.from)) << "i=" << i << ", m.from=" << m.from;
- }
-}
-
-} // namespace
-} // namespace mojio
« no previous file with comments | « mojo/services/files/public/c/tests/test_utils_unittest.cc ('k') | mojo/services/files/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698