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

Side by Side Diff: sync/engine/syncer_unittest.cc

Issue 11533008: Use delete journal to remove bookmarks that are already deleted in sync model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Syncer unit tests. Unfortunately a lot of these tests 5 // Syncer unit tests. Unfortunately a lot of these tests
6 // are outdated and need to be reworked and updated. 6 // are outdated and need to be reworked and updated.
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <limits> 9 #include <limits>
10 #include <list> 10 #include <list>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 session_.reset(MakeSession()); 200 session_.reset(MakeSession());
201 SyncShareAsDelegate(SyncSessionJob::NUDGE); 201 SyncShareAsDelegate(SyncSessionJob::NUDGE);
202 } 202 }
203 203
204 void SyncShareConfigure() { 204 void SyncShareConfigure() {
205 session_.reset(MakeSession()); 205 session_.reset(MakeSession());
206 SyncShareAsDelegate(SyncSessionJob::CONFIGURATION); 206 SyncShareAsDelegate(SyncSessionJob::CONFIGURATION);
207 } 207 }
208 208
209 virtual void SetUp() { 209 virtual void SetUp() {
210 dir_maker_.SetUp(); 210 dir_maker_.SetUp(NULL);
211 mock_server_.reset(new MockConnectionManager(directory())); 211 mock_server_.reset(new MockConnectionManager(directory()));
212 EnableDatatype(BOOKMARKS); 212 EnableDatatype(BOOKMARKS);
213 EnableDatatype(NIGORI); 213 EnableDatatype(NIGORI);
214 EnableDatatype(PREFERENCES); 214 EnableDatatype(PREFERENCES);
215 EnableDatatype(NIGORI); 215 EnableDatatype(NIGORI);
216 worker_ = new FakeModelWorker(GROUP_PASSIVE); 216 worker_ = new FakeModelWorker(GROUP_PASSIVE);
217 std::vector<SyncEngineEventListener*> listeners; 217 std::vector<SyncEngineEventListener*> listeners;
218 listeners.push_back(this); 218 listeners.push_back(this);
219 219
220 ModelSafeRoutingInfo routing_info; 220 ModelSafeRoutingInfo routing_info;
(...skipping 4478 matching lines...) Expand 10 before | Expand all | Expand 10 after
4699 4699
4700 TEST_F(SyncerPositionTiebreakingTest, MidLowHigh) { 4700 TEST_F(SyncerPositionTiebreakingTest, MidLowHigh) {
4701 Add(mid_id_); 4701 Add(mid_id_);
4702 Add(low_id_); 4702 Add(low_id_);
4703 Add(high_id_); 4703 Add(high_id_);
4704 SyncShareNudge(); 4704 SyncShareNudge();
4705 ExpectLocalOrderIsByServerId(); 4705 ExpectLocalOrderIsByServerId();
4706 } 4706 }
4707 4707
4708 } // namespace syncer 4708 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698