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

Unified Diff: mojo/public/cpp/utility/tests/mutex_unittest.cc

Issue 360563004: Enable Mojo on iOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reduce diff in mojo_public.gypi Created 6 years, 6 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/public/cpp/utility/tests/mutex_unittest.cc
diff --git a/mojo/public/cpp/utility/tests/mutex_unittest.cc b/mojo/public/cpp/utility/tests/mutex_unittest.cc
index 5f75e60a3d9e5a28be94b384cfb037dc019934ed..6a7a8361fa967476ca2c3f983be167f578408688 100644
--- a/mojo/public/cpp/utility/tests/mutex_unittest.cc
+++ b/mojo/public/cpp/utility/tests/mutex_unittest.cc
@@ -225,33 +225,33 @@ TEST(MutexTest, TryLock) {
// Test |AssertHeld()| (which is an actual user API).
TEST(MutexTest, DebugAssertHeldFailure) {
Mutex mutex;
- EXPECT_DEATH(mutex.AssertHeld(), "");
+ EXPECT_DEATH_IF_SUPPORTED(mutex.AssertHeld(), "");
}
// Test other consistency checks.
TEST(MutexTest, DebugAssertionFailures) {
// Unlock without lock held.
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
Mutex mutex;
mutex.Unlock();
}, "");
// Lock with lock held (on same thread).
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
Mutex mutex;
mutex.Lock();
mutex.Lock();
}, "");
// Try lock with lock held.
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
Mutex mutex;
mutex.Lock();
mutex.TryLock();
}, "");
// Destroy lock with lock held.
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
Mutex mutex;
mutex.Lock();
}, "");
« no previous file with comments | « mojo/public/cpp/environment/tests/logger_unittest.cc ('k') | mojo/public/cpp/utility/tests/thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698