OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual void OnReceivedShortPollIntervalUpdate( | 119 virtual void OnReceivedShortPollIntervalUpdate( |
120 const base::TimeDelta& new_interval) OVERRIDE { | 120 const base::TimeDelta& new_interval) OVERRIDE { |
121 last_short_poll_interval_received_ = new_interval; | 121 last_short_poll_interval_received_ = new_interval; |
122 } | 122 } |
123 virtual void OnReceivedSessionsCommitDelay( | 123 virtual void OnReceivedSessionsCommitDelay( |
124 const base::TimeDelta& new_delay) OVERRIDE { | 124 const base::TimeDelta& new_delay) OVERRIDE { |
125 last_sessions_commit_delay_seconds_ = new_delay; | 125 last_sessions_commit_delay_seconds_ = new_delay; |
126 } | 126 } |
127 virtual void OnShouldStopSyncingPermanently() OVERRIDE { | 127 virtual void OnShouldStopSyncingPermanently() OVERRIDE { |
128 } | 128 } |
| 129 virtual void OnSyncError(sessions::SyncSession* session) OVERRIDE { |
| 130 } |
129 | 131 |
130 // ModelSafeWorkerRegistrar implementation. | 132 // ModelSafeWorkerRegistrar implementation. |
131 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { | 133 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { |
132 out->push_back(worker_.get()); | 134 out->push_back(worker_.get()); |
133 } | 135 } |
134 | 136 |
135 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { | 137 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { |
136 // We're just testing the sync engine here, so we shunt everything to | 138 // We're just testing the sync engine here, so we shunt everything to |
137 // the SyncerThread. Datatypes which aren't enabled aren't in the map. | 139 // the SyncerThread. Datatypes which aren't enabled aren't in the map. |
138 for (int i = 0; i < syncable::MODEL_TYPE_COUNT; ++i) { | 140 for (int i = 0; i < syncable::MODEL_TYPE_COUNT; ++i) { |
(...skipping 5049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5188 Add(low_id_); | 5190 Add(low_id_); |
5189 Add(high_id_); | 5191 Add(high_id_); |
5190 SyncShareAsDelegate(); | 5192 SyncShareAsDelegate(); |
5191 ExpectLocalOrderIsByServerId(); | 5193 ExpectLocalOrderIsByServerId(); |
5192 } | 5194 } |
5193 | 5195 |
5194 const SyncerTest::CommitOrderingTest | 5196 const SyncerTest::CommitOrderingTest |
5195 SyncerTest::CommitOrderingTest::LAST_COMMIT_ITEM = {-1, TestIdFactory::root()}; | 5197 SyncerTest::CommitOrderingTest::LAST_COMMIT_ITEM = {-1, TestIdFactory::root()}; |
5196 | 5198 |
5197 } // namespace browser_sync | 5199 } // namespace browser_sync |
OLD | NEW |