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

Unified Diff: cc/base/delayed_unique_notifier_unittest.cc

Issue 502203003: Remove implicit conversions from scoped_refptr to T* in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to use .get() instead of rewriting local variable 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 | « no previous file | cc/debug/frame_viewer_instrumentation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/delayed_unique_notifier_unittest.cc
diff --git a/cc/base/delayed_unique_notifier_unittest.cc b/cc/base/delayed_unique_notifier_unittest.cc
index ffffe353db1d8c572d7d00f61eacb10bb9a6e7c5..6c7ae6efd9fa6dee7b4b49039f59cc5212d0f686 100644
--- a/cc/base/delayed_unique_notifier_unittest.cc
+++ b/cc/base/delayed_unique_notifier_unittest.cc
@@ -58,7 +58,7 @@ class DelayedUniqueNotifierTest : public testing::Test {
TEST_F(DelayedUniqueNotifierTest, ZeroDelay) {
base::TimeDelta delay = base::TimeDelta::FromInternalValue(0);
TestNotifier notifier(
- task_runner_,
+ task_runner_.get(),
base::Bind(&DelayedUniqueNotifierTest::Notify, base::Unretained(this)),
delay);
@@ -93,7 +93,7 @@ TEST_F(DelayedUniqueNotifierTest, ZeroDelay) {
TEST_F(DelayedUniqueNotifierTest, SmallDelay) {
base::TimeDelta delay = base::TimeDelta::FromInternalValue(20);
TestNotifier notifier(
- task_runner_,
+ task_runner_.get(),
base::Bind(&DelayedUniqueNotifierTest::Notify, base::Unretained(this)),
delay);
@@ -153,7 +153,7 @@ TEST_F(DelayedUniqueNotifierTest, SmallDelay) {
TEST_F(DelayedUniqueNotifierTest, RescheduleDelay) {
base::TimeDelta delay = base::TimeDelta::FromInternalValue(20);
TestNotifier notifier(
- task_runner_,
+ task_runner_.get(),
base::Bind(&DelayedUniqueNotifierTest::Notify, base::Unretained(this)),
delay);
@@ -195,7 +195,7 @@ TEST_F(DelayedUniqueNotifierTest, RescheduleDelay) {
TEST_F(DelayedUniqueNotifierTest, CancelAndHasPendingNotification) {
base::TimeDelta delay = base::TimeDelta::FromInternalValue(20);
TestNotifier notifier(
- task_runner_,
+ task_runner_.get(),
base::Bind(&DelayedUniqueNotifierTest::Notify, base::Unretained(this)),
delay);
« no previous file with comments | « no previous file | cc/debug/frame_viewer_instrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698