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

Unified Diff: extensions/browser/lazy_background_task_queue_unittest.cc

Issue 503873002: Remove implicit conversions from scoped_refptr to T* in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « extensions/browser/info_map.h ('k') | extensions/browser/process_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 200fb79f57df812669fa73720991ac0e0dd93b58..eefebc27ea4ce02aabbab4d044fb888192121d63 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);
+ queue.ProcessPendingTasks(NULL, 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);
+ queue.ProcessPendingTasks(NULL, &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);
+ queue.ProcessPendingTasks(NULL, browser_context(), extension.get());
EXPECT_EQ(1, task_run_count());
EXPECT_EQ(0u, queue.extensions_with_pending_tasks());
}
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/browser/process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698