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

Unified Diff: sync/sessions/nudge_tracker_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
« no previous file with comments | « sync/internal_api/attachments/task_queue_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/nudge_tracker_unittest.cc
diff --git a/sync/sessions/nudge_tracker_unittest.cc b/sync/sessions/nudge_tracker_unittest.cc
index 50b596b7f6120e44d642b1b3373c9a0d527eb0ac..c6a9dfb808de851eee8c2c76d677646a338519a3 100644
--- a/sync/sessions/nudge_tracker_unittest.cc
+++ b/sync/sessions/nudge_tracker_unittest.cc
@@ -67,13 +67,11 @@ class NudgeTrackerTest : public ::testing::Test {
scoped_ptr<InvalidationInterface> BuildInvalidation(
int64 version,
const std::string& payload) {
- return MockInvalidation::Build(version, payload)
- .PassAs<InvalidationInterface>();
+ return MockInvalidation::Build(version, payload);
}
static scoped_ptr<InvalidationInterface> BuildUnknownVersionInvalidation() {
- return MockInvalidation::BuildUnknownVersion()
- .PassAs<InvalidationInterface>();
+ return MockInvalidation::BuildUnknownVersion();
}
protected:
@@ -830,8 +828,7 @@ class NudgeTrackerAckTrackingTest : public NudgeTrackerTest {
int id = inv->GetTrackingId();
// Send it to the NudgeTracker.
- nudge_tracker_.RecordRemoteInvalidation(
- type, inv.PassAs<InvalidationInterface>());
+ nudge_tracker_.RecordRemoteInvalidation(type, inv.Pass());
// Return its ID to the test framework for use in assertions.
return id;
@@ -844,8 +841,7 @@ class NudgeTrackerAckTrackingTest : public NudgeTrackerTest {
int id = inv->GetTrackingId();
// Send it to the NudgeTracker.
- nudge_tracker_.RecordRemoteInvalidation(
- type, inv.PassAs<InvalidationInterface>());
+ nudge_tracker_.RecordRemoteInvalidation(type, inv.Pass());
// Return its ID to the test framework for use in assertions.
return id;
« no previous file with comments | « sync/internal_api/attachments/task_queue_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698