| 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 OnRequestEarlyExit() OVERRIDE { |
| 130 } |
| 131 virtual void OnActionableError() OVERRIDE { |
| 132 } |
| 129 | 133 |
| 130 // ModelSafeWorkerRegistrar implementation. | 134 // ModelSafeWorkerRegistrar implementation. |
| 131 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { | 135 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { |
| 132 out->push_back(worker_.get()); | 136 out->push_back(worker_.get()); |
| 133 } | 137 } |
| 134 | 138 |
| 135 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { | 139 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { |
| 136 // We're just testing the sync engine here, so we shunt everything to | 140 // 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. | 141 // the SyncerThread. Datatypes which aren't enabled aren't in the map. |
| 138 for (int i = 0; i < syncable::MODEL_TYPE_COUNT; ++i) { | 142 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_); | 5192 Add(low_id_); |
| 5189 Add(high_id_); | 5193 Add(high_id_); |
| 5190 SyncShareAsDelegate(); | 5194 SyncShareAsDelegate(); |
| 5191 ExpectLocalOrderIsByServerId(); | 5195 ExpectLocalOrderIsByServerId(); |
| 5192 } | 5196 } |
| 5193 | 5197 |
| 5194 const SyncerTest::CommitOrderingTest | 5198 const SyncerTest::CommitOrderingTest |
| 5195 SyncerTest::CommitOrderingTest::LAST_COMMIT_ITEM = {-1, TestIdFactory::root()}; | 5199 SyncerTest::CommitOrderingTest::LAST_COMMIT_ITEM = {-1, TestIdFactory::root()}; |
| 5196 | 5200 |
| 5197 } // namespace browser_sync | 5201 } // namespace browser_sync |
| OLD | NEW |