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

Unified Diff: chrome/browser/sync/engine/syncer_unittest.cc

Issue 5939006: sync: beginnings of MessageLoop based SyncerThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 10 years 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/sync/engine/syncer_unittest.cc
diff --git a/chrome/browser/sync/engine/syncer_unittest.cc b/chrome/browser/sync/engine/syncer_unittest.cc
index 27725b37021f3cc50dfd8e6edd9f5807aa23a59a..e90832566ee347de242f744925916997b9bc3835 100644
--- a/chrome/browser/sync/engine/syncer_unittest.cc
+++ b/chrome/browser/sync/engine/syncer_unittest.cc
@@ -155,7 +155,7 @@ class SyncerTest : public testing::Test,
}
bool SyncShareAsDelegate() {
- scoped_ptr<SyncSession> session(MakeSession());
+ scoped_refptr<SyncSession> session(MakeSession());
syncer_->SyncShare(session.get());
return session->HasMoreToSync();
}
@@ -183,7 +183,7 @@ class SyncerTest : public testing::Test,
context_->set_account_name(syncdb_.name());
ASSERT_FALSE(context_->resolver());
syncer_ = new Syncer();
- session_.reset(MakeSession());
+ session_ = MakeSession();
ScopedDirLookup dir(syncdb_.manager(), syncdb_.name());
CHECK(dir.good());
@@ -461,7 +461,7 @@ class SyncerTest : public testing::Test,
Syncer* syncer_;
- scoped_ptr<SyncSession> session_;
+ scoped_refptr<SyncSession> session_;
scoped_ptr<SyncSessionContext> context_;
bool saw_syncer_event_;
base::TimeDelta last_short_poll_interval_received_;

Powered by Google App Engine
This is Rietveld 408576698