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

Unified Diff: chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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: chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc
diff --git a/chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc b/chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc
index 9fcf048f552092ef6ee2c14cf7a4fec07a70644c..a42504dc81e54e852bc0d660c9d57da2aab6fe2a 100644
--- a/chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc
+++ b/chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc
@@ -54,7 +54,7 @@ class CloudPolicyRefreshSchedulerTest : public testing::Test {
base::TimeDelta::FromMilliseconds(store_.policy_->timestamp());
// Keep track of when the last task was posted.
- EXPECT_CALL(*task_runner_, PostDelayedTask(_, _, _))
+ EXPECT_CALL(*task_runner_.get(), PostDelayedTask(_, _, _))
.WillRepeatedly(DoAll(SaveArg<1>(&last_callback_),
SaveArg<2>(&last_delay_),
Return(true)));
@@ -131,7 +131,7 @@ TEST_F(CloudPolicyRefreshSchedulerTest, InitialRefreshManagedAlreadyFetched) {
TEST_F(CloudPolicyRefreshSchedulerTest, Unregistered) {
client_.SetDMToken("");
- EXPECT_CALL(*task_runner_, PostDelayedTask(_, _, _)).Times(0);
+ EXPECT_CALL(*task_runner_.get(), PostDelayedTask(_, _, _)).Times(0);
scoped_ptr<CloudPolicyRefreshScheduler> scheduler(CreateRefreshScheduler());
client_.NotifyPolicyFetched();
client_.NotifyRegistrationStateChanged();
@@ -168,7 +168,7 @@ TEST_F(CloudPolicyRefreshSchedulerSteadyStateTest, OnRegistrationStateChanged) {
client_.NotifyRegistrationStateChanged();
EXPECT_EQ(last_delay_, base::TimeDelta());
- EXPECT_CALL(*task_runner_, PostDelayedTask(_, _, _)).Times(0);
+ EXPECT_CALL(*task_runner_.get(), PostDelayedTask(_, _, _)).Times(0);
client_.SetDMToken("");
client_.NotifyRegistrationStateChanged();
}
@@ -179,7 +179,7 @@ TEST_F(CloudPolicyRefreshSchedulerSteadyStateTest, OnStoreLoaded) {
}
TEST_F(CloudPolicyRefreshSchedulerSteadyStateTest, OnStoreError) {
- EXPECT_CALL(*task_runner_, PostDelayedTask(_, _, _)).Times(0);
+ EXPECT_CALL(*task_runner_.get(), PostDelayedTask(_, _, _)).Times(0);
store_.NotifyStoreError();
}
« no previous file with comments | « chrome/browser/password_manager/password_store_x_unittest.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698