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

Unified Diff: webrtc/base/thread_unittest.cc

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. 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
« no previous file with comments | « webrtc/base/thread_checker_unittest.cc ('k') | webrtc/base/timeutils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/thread_unittest.cc
diff --git a/webrtc/base/thread_unittest.cc b/webrtc/base/thread_unittest.cc
index e4e74d6db00a662241c24096b52ba3daa137c499..39f2b2e2cc93d6e15406ba741fc2ab76210dab84 100644
--- a/webrtc/base/thread_unittest.cc
+++ b/webrtc/base/thread_unittest.cc
@@ -243,7 +243,7 @@ TEST(ThreadTest, Names) {
delete thread;
thread = new Thread();
// Name with no object parameter
- EXPECT_TRUE(thread->SetName("No object", NULL));
+ EXPECT_TRUE(thread->SetName("No object", nullptr));
EXPECT_TRUE(thread->Start());
thread->Stop();
delete thread;
@@ -292,7 +292,7 @@ TEST(ThreadTest, Invoke) {
TEST(ThreadTest, TwoThreadsInvokeNoDeadlock) {
AutoThread thread;
Thread* current_thread = Thread::Current();
- ASSERT_TRUE(current_thread != NULL);
+ ASSERT_TRUE(current_thread != nullptr);
Thread other_thread;
other_thread.Start();
@@ -443,7 +443,7 @@ class AsyncInvokeTest : public testing::Test {
AsyncInvokeTest()
: int_value_(0),
invoke_started_(true, false),
- expected_thread_(NULL) {}
+ expected_thread_(nullptr) {}
int int_value_;
Event invoke_started_;
@@ -788,7 +788,7 @@ class ComThreadTest : public testing::Test, public MessageHandler {
ComThreadTest() : done_(false) {}
protected:
virtual void OnMessage(Message* message) {
- HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
+ HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
// S_FALSE means the thread was already inited for a multithread apartment.
EXPECT_EQ(S_FALSE, hr);
if (SUCCEEDED(hr)) {
« no previous file with comments | « webrtc/base/thread_checker_unittest.cc ('k') | webrtc/base/timeutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698