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

Unified Diff: mojo/public/c/tests/system/wait_unittest.cc

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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/public/c/tests/system/wait_set_unittest.cc ('k') | mojo/public/cpp/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/tests/system/wait_unittest.cc
diff --git a/mojo/public/c/tests/system/wait_unittest.cc b/mojo/public/c/tests/system/wait_unittest.cc
deleted file mode 100644
index e09a2ccf8884ee78fe45d5f9b013df018292882b..0000000000000000000000000000000000000000
--- a/mojo/public/c/tests/system/wait_unittest.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 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.
-
-// This file tests the C wait API (the functions declared in
-// mojo/public/c/include/mojo/system/wait.h).
-
-#include <mojo/system/wait.h>
-
-#include <mojo/result.h>
-#include <mojo/system/handle.h>
-
-#include "gtest/gtest.h"
-
-namespace {
-
-TEST(WaitTest, InvalidHandle) {
- EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
- MojoWait(MOJO_HANDLE_INVALID, ~MOJO_HANDLE_SIGNAL_NONE, 1000000u,
- nullptr));
-
- const MojoHandle h = MOJO_HANDLE_INVALID;
- MojoHandleSignals sig = ~MOJO_HANDLE_SIGNAL_NONE;
- EXPECT_EQ(
- MOJO_RESULT_INVALID_ARGUMENT,
- MojoWaitMany(&h, &sig, 1u, MOJO_DEADLINE_INDEFINITE, nullptr, nullptr));
-}
-
-TEST(WaitTest, WaitManyNoHandles) {
- EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED,
- MojoWaitMany(nullptr, nullptr, 0u, static_cast<MojoDeadline>(0),
- nullptr, nullptr));
-
- // The |result_index| argument is optional, so make sure it doesn't touch it
- // even if it's non-null.
- // TODO(vtl): The same is true for the |signals_states| argument.
- uint32_t result_index = static_cast<uint32_t>(-1);
- EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED,
- MojoWaitMany(nullptr, nullptr, 0u, static_cast<MojoDeadline>(1000),
- &result_index, nullptr));
- EXPECT_EQ(static_cast<uint32_t>(-1), result_index);
-}
-
-// TODO(vtl): Write tests that actually test waiting.
-
-} // namespace
« no previous file with comments | « mojo/public/c/tests/system/wait_set_unittest.cc ('k') | mojo/public/cpp/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698