| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ | 5 #ifndef CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ |
| 6 #define CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ | 6 #define CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/browser/sync/engine/model_safe_worker.h" | 10 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 return false; | 37 return false; |
| 38 } | 38 } |
| 39 virtual void OnReceivedLongPollIntervalUpdate( | 39 virtual void OnReceivedLongPollIntervalUpdate( |
| 40 const base::TimeDelta& new_interval) { | 40 const base::TimeDelta& new_interval) { |
| 41 FAIL() << "Should not get poll interval update."; | 41 FAIL() << "Should not get poll interval update."; |
| 42 } | 42 } |
| 43 virtual void OnReceivedShortPollIntervalUpdate( | 43 virtual void OnReceivedShortPollIntervalUpdate( |
| 44 const base::TimeDelta& new_interval) { | 44 const base::TimeDelta& new_interval) { |
| 45 FAIL() << "Should not get poll interval update."; | 45 FAIL() << "Should not get poll interval update."; |
| 46 } | 46 } |
| 47 virtual void OnShouldStopSyncingPermanently() { |
| 48 FAIL() << "Shouldn't be forced to stop syncing."; |
| 49 } |
| 47 | 50 |
| 48 // ModelSafeWorkerRegistrar implementation. | 51 // ModelSafeWorkerRegistrar implementation. |
| 49 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) { | 52 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) { |
| 50 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; | 53 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; |
| 51 for (it = workers_.begin(); it != workers_.end(); ++it) | 54 for (it = workers_.begin(); it != workers_.end(); ++it) |
| 52 out->push_back(*it); | 55 out->push_back(*it); |
| 53 } | 56 } |
| 54 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { | 57 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { |
| 55 ModelSafeRoutingInfo copy(routing_info_); | 58 ModelSafeRoutingInfo copy(routing_info_); |
| 56 out->swap(copy); | 59 out->swap(copy); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 : SyncerCommandTestWithParam<void*>( | 133 : SyncerCommandTestWithParam<void*>( |
| 131 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {} | 134 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {} |
| 132 MockDirectorySetterUpper::MockDirectory* mock_directory() { | 135 MockDirectorySetterUpper::MockDirectory* mock_directory() { |
| 133 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory(); | 136 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory(); |
| 134 } | 137 } |
| 135 }; | 138 }; |
| 136 | 139 |
| 137 } // namespace browser_sync | 140 } // namespace browser_sync |
| 138 | 141 |
| 139 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ | 142 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ |
| OLD | NEW |