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

Unified Diff: extensions/browser/lazy_background_task_queue_unittest.cc

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: extensions/browser/lazy_background_task_queue_unittest.cc
diff --git a/extensions/browser/lazy_background_task_queue_unittest.cc b/extensions/browser/lazy_background_task_queue_unittest.cc
index eefebc27ea4ce02aabbab4d044fb888192121d63..3e0a7541ec68ce4309441dbe2debb750f934d226 100644
--- a/extensions/browser/lazy_background_task_queue_unittest.cc
+++ b/extensions/browser/lazy_background_task_queue_unittest.cc
@@ -195,7 +195,7 @@ TEST_F(LazyBackgroundTaskQueueTest, ProcessPendingTasks) {
// ProcessPendingTasks is a no-op if there are no tasks.
scoped_refptr<Extension> extension = CreateSimpleExtension();
- queue.ProcessPendingTasks(NULL, browser_context(), extension.get());
+ queue.ProcessPendingTasks(nullptr, browser_context(), extension.get());
EXPECT_EQ(0, task_run_count());
// Schedule a task to run.
@@ -208,13 +208,13 @@ TEST_F(LazyBackgroundTaskQueueTest, ProcessPendingTasks) {
// Trying to run tasks for an unrelated BrowserContext should do nothing.
content::TestBrowserContext unrelated_context;
- queue.ProcessPendingTasks(NULL, &unrelated_context, extension.get());
+ queue.ProcessPendingTasks(nullptr, &unrelated_context, extension.get());
EXPECT_EQ(0, task_run_count());
EXPECT_EQ(1u, queue.extensions_with_pending_tasks());
// Processing tasks when there is one pending runs the task and removes the
// extension from the list of extensions with pending tasks.
- queue.ProcessPendingTasks(NULL, browser_context(), extension.get());
+ queue.ProcessPendingTasks(nullptr, browser_context(), extension.get());
EXPECT_EQ(1, task_run_count());
EXPECT_EQ(0u, queue.extensions_with_pending_tasks());
}

Powered by Google App Engine
This is Rietveld 408576698