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

Unified Diff: sync/internal_api/attachments/attachment_service_impl_unittest.cc

Issue 657783002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: sync/internal_api/attachments/attachment_service_impl_unittest.cc
diff --git a/sync/internal_api/attachments/attachment_service_impl_unittest.cc b/sync/internal_api/attachments/attachment_service_impl_unittest.cc
index 1ce5cc35db297b91bee272805f7ae8106cdce931..eaa02f74e1da57d6f025db87d97416eeb39fde2f 100644
--- a/sync/internal_api/attachments/attachment_service_impl_unittest.cc
+++ b/sync/internal_api/attachments/attachment_service_impl_unittest.cc
@@ -195,8 +195,8 @@ class AttachmentServiceImplTest : public testing::Test,
}
attachment_service_.reset(
new AttachmentServiceImpl(attachment_store,
- uploader.PassAs<AttachmentUploader>(),
- downloader.PassAs<AttachmentDownloader>(),
+ uploader.Pass(),
+ downloader.Pass(),
delegate,
base::TimeDelta::FromMinutes(1),
base::TimeDelta::FromMinutes(8)));
@@ -204,7 +204,7 @@ class AttachmentServiceImplTest : public testing::Test,
scoped_ptr<base::MockTimer> timer_to_pass(
new base::MockTimer(false, false));
mock_timer_ = timer_to_pass.get();
- attachment_service_->SetTimerForTest(timer_to_pass.PassAs<base::Timer>());
+ attachment_service_->SetTimerForTest(timer_to_pass.Pass());
}
AttachmentService* attachment_service() { return attachment_service_.get(); }
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/internal_api/attachments/attachment_uploader_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698