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

Unified Diff: util/mach/exception_ports_test.cc

Issue 656703002: Convert NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix 80-column violations Created 6 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 | « util/mach/exception_ports.cc ('k') | util/mach/mach_message_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/exception_ports_test.cc
diff --git a/util/mach/exception_ports_test.cc b/util/mach/exception_ports_test.cc
index 7e98a41d1e4bb2133207749e2f1926bc8fb654cd..9007305e5341e7dbbf10437945618baa3f506f2d 100644
--- a/util/mach/exception_ports_test.cc
+++ b/util/mach/exception_ports_test.cc
@@ -186,7 +186,7 @@ class TestExceptionPorts : public UniversalMachExcServer,
// function returning type void, and the interface dictates otherwise here.
if (exception == EXC_CRASH && code_count >= 1) {
int signal;
- ExcCrashRecoverOriginalException(code[0], NULL, &signal);
+ ExcCrashRecoverOriginalException(code[0], nullptr, &signal);
// The child crashed with a division by zero, which shows up as SIGFPE.
// This was chosen because it’s unlikely to be generated by testing or
@@ -231,7 +231,7 @@ class TestExceptionPorts : public UniversalMachExcServer,
}
}
- int rv_int = pthread_create(&thread_, NULL, ThreadMainThunk, this);
+ int rv_int = pthread_create(&thread_, nullptr, ThreadMainThunk, this);
ASSERT_EQ(0, rv_int);
// Wait for the new thread to be ready.
@@ -271,7 +271,7 @@ class TestExceptionPorts : public UniversalMachExcServer,
}
// Reap the other thread.
- rv_int = pthread_join(thread_, NULL);
+ rv_int = pthread_join(thread_, nullptr);
ASSERT_EQ(0, rv_int);
}
@@ -320,7 +320,7 @@ class TestExceptionPorts : public UniversalMachExcServer,
Crash();
}
- return NULL;
+ return nullptr;
}
// Crashes by performing a division by zero. The assignment is present to
« no previous file with comments | « util/mach/exception_ports.cc ('k') | util/mach/mach_message_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698