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

Unified Diff: webrtc/base/physicalsocketserver_unittest.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. Created 3 years, 10 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: webrtc/base/physicalsocketserver_unittest.cc
diff --git a/webrtc/base/physicalsocketserver_unittest.cc b/webrtc/base/physicalsocketserver_unittest.cc
index 37d412dc1fcf84e72a5448cbd9446fa8b7ee21dc..6a7b67f53f7760d54e1f795d82adee88dfb4f797 100644
--- a/webrtc/base/physicalsocketserver_unittest.cc
+++ b/webrtc/base/physicalsocketserver_unittest.cc
@@ -428,9 +428,9 @@ class PosixSignalDeliveryTest : public testing::Test {
}
void TearDown() {
- ss_.reset(NULL);
+ ss_.reset(nullptr);
signals_received_.clear();
- signaled_thread_ = NULL;
+ signaled_thread_ = nullptr;
}
bool ExpectSignal(int signum) {
@@ -463,7 +463,7 @@ class PosixSignalDeliveryTest : public testing::Test {
};
std::vector<int> PosixSignalDeliveryTest::signals_received_;
-Thread *PosixSignalDeliveryTest::signaled_thread_ = NULL;
+Thread* PosixSignalDeliveryTest::signaled_thread_ = nullptr;
// Test receiving a synchronous signal while not in Wait() and then entering
// Wait() afterwards.
@@ -508,7 +508,7 @@ class RaiseSigTermRunnable : public Runnable {
// be delivered to us.
sigset_t mask;
sigemptyset(&mask);
- pthread_sigmask(SIG_SETMASK, &mask, NULL);
+ pthread_sigmask(SIG_SETMASK, &mask, nullptr);
// Raise it.
raise(SIGTERM);
@@ -523,7 +523,7 @@ TEST_F(PosixSignalDeliveryTest, SignalOnDifferentThread) {
sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGTERM);
- EXPECT_EQ(0, pthread_sigmask(SIG_SETMASK, &mask, NULL));
+ EXPECT_EQ(0, pthread_sigmask(SIG_SETMASK, &mask, nullptr));
// Start a new thread that raises it. It will have to be delivered to that
// thread. Our implementation should safely handle it and dispatch
// RecordSignal() on this thread.

Powered by Google App Engine
This is Rietveld 408576698