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

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

Issue 2865022: sync: add CleanupDisabledTypesCommand to purge data pertaining to previously... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/sync/engine/process_commit_response_command_unittest.cc
===================================================================
--- chrome/browser/sync/engine/process_commit_response_command_unittest.cc (revision 51231)
+++ chrome/browser/sync/engine/process_commit_response_command_unittest.cc (working copy)
@@ -86,7 +86,7 @@
bool is_folder,
syncable::ModelType model_type,
int64* metahandle_out) {
- ScopedDirLookup dir(syncdb().manager(), syncdb().name());
+ ScopedDirLookup dir(syncdb()->manager(), syncdb()->name());
ASSERT_TRUE(dir.good());
WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
Id predecessor_id = dir->GetLastChildId(&trans, parent_id);
@@ -132,7 +132,7 @@
commit_set_->AddCommitItem(metahandle, item_id, model_type);
sync_state->set_commit_set(*commit_set_.get());
- ScopedDirLookup dir(syncdb().manager(), syncdb().name());
+ ScopedDirLookup dir(syncdb()->manager(), syncdb()->name());
ASSERT_TRUE(dir.good());
WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
MutableEntry entry(&trans, syncable::GET_BY_ID, item_id);
@@ -228,7 +228,7 @@
command_.ExecuteImpl(session());
- ScopedDirLookup dir(syncdb().manager(), syncdb().name());
+ ScopedDirLookup dir(syncdb()->manager(), syncdb()->name());
ASSERT_TRUE(dir.good());
ReadTransaction trans(dir, __FILE__, __LINE__);
Id new_fid = dir->GetFirstChildId(&trans, id_factory_.root());
@@ -282,7 +282,7 @@
// Verify that the item is reachable.
{
- ScopedDirLookup dir(syncdb().manager(), syncdb().name());
+ ScopedDirLookup dir(syncdb()->manager(), syncdb()->name());
ASSERT_TRUE(dir.good());
ReadTransaction trans(dir, __FILE__, __LINE__);
ASSERT_EQ(folder_id, dir->GetFirstChildId(&trans, id_factory_.root()));
@@ -315,7 +315,7 @@
// items in the commit batch should have their IDs changed to server IDs.
command_.ExecuteImpl(session());
- ScopedDirLookup dir(syncdb().manager(), syncdb().name());
+ ScopedDirLookup dir(syncdb()->manager(), syncdb()->name());
ASSERT_TRUE(dir.good());
ReadTransaction trans(dir, __FILE__, __LINE__);
// Lookup the parent folder by finding a child of the root. We can't use
« no previous file with comments | « chrome/browser/sync/engine/download_updates_command_unittest.cc ('k') | chrome/browser/sync/engine/syncer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698