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

Unified Diff: mojo/public/cpp/utility/tests/thread_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
« no previous file with comments | « mojo/public/cpp/utility/tests/mutex_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/utility/tests/thread_unittest.cc
diff --git a/mojo/public/cpp/utility/tests/thread_unittest.cc b/mojo/public/cpp/utility/tests/thread_unittest.cc
index 223315bbb94f4286c4169c7068606dfdbeea5442..bca8a1d9b9b779f25b19aa2a44a5c9ac3c6f3e59 100644
--- a/mojo/public/cpp/utility/tests/thread_unittest.cc
+++ b/mojo/public/cpp/utility/tests/thread_unittest.cc
@@ -70,7 +70,7 @@ TEST(ThreadTest, CreateAndJoin) {
#if !defined(NDEBUG)
TEST(ThreadTest, DebugAssertionFailures) {
// Can only start once.
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
int value = 0;
SetIntThread thread(&value, 1);
thread.Start();
@@ -78,14 +78,14 @@ TEST(ThreadTest, DebugAssertionFailures) {
}, "");
// Must join (if you start).
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
int value = 0;
SetIntThread thread(&value, 2);
thread.Start();
}, "");
// Can only join once.
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
int value = 0;
SetIntThread thread(&value, 3);
thread.Start();
@@ -94,7 +94,7 @@ TEST(ThreadTest, DebugAssertionFailures) {
}, "");
// Stack too big (we're making certain assumptions here).
- EXPECT_DEATH({
+ EXPECT_DEATH_IF_SUPPORTED({
int value = 0;
Thread::Options options;
options.set_stack_size(static_cast<size_t>(-1));
« no previous file with comments | « mojo/public/cpp/utility/tests/mutex_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698