| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ | 5 #ifndef SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ |
| 6 #define SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ | 6 #define SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ModelTypeSet types, | 43 ModelTypeSet types, |
| 44 const base::TimeDelta& throttle_duration) OVERRIDE; | 44 const base::TimeDelta& throttle_duration) OVERRIDE; |
| 45 virtual bool IsCurrentlyThrottled() OVERRIDE; | 45 virtual bool IsCurrentlyThrottled() OVERRIDE; |
| 46 virtual void OnReceivedLongPollIntervalUpdate( | 46 virtual void OnReceivedLongPollIntervalUpdate( |
| 47 const base::TimeDelta& new_interval) OVERRIDE; | 47 const base::TimeDelta& new_interval) OVERRIDE; |
| 48 virtual void OnReceivedShortPollIntervalUpdate( | 48 virtual void OnReceivedShortPollIntervalUpdate( |
| 49 const base::TimeDelta& new_interval) OVERRIDE; | 49 const base::TimeDelta& new_interval) OVERRIDE; |
| 50 virtual void OnReceivedSessionsCommitDelay( | 50 virtual void OnReceivedSessionsCommitDelay( |
| 51 const base::TimeDelta& new_delay) OVERRIDE; | 51 const base::TimeDelta& new_delay) OVERRIDE; |
| 52 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE; | 52 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE; |
| 53 virtual void OnShouldStopSyncingPermanently() OVERRIDE; | |
| 54 virtual void OnSyncProtocolError( | 53 virtual void OnSyncProtocolError( |
| 55 const sessions::SyncSessionSnapshot& session) OVERRIDE; | 54 const sessions::SyncSessionSnapshot& session) OVERRIDE; |
| 56 | 55 |
| 57 std::vector<ModelSafeWorker*> GetWorkers() { | 56 std::vector<ModelSafeWorker*> GetWorkers() { |
| 58 std::vector<ModelSafeWorker*> workers; | 57 std::vector<ModelSafeWorker*> workers; |
| 59 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; | 58 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; |
| 60 for (it = workers_.begin(); it != workers_.end(); ++it) | 59 for (it = workers_.begin(); it != workers_.end(); ++it) |
| 61 workers.push_back(it->get()); | 60 workers.push_back(it->get()); |
| 62 return workers; | 61 return workers; |
| 63 } | 62 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 virtual void TearDown() OVERRIDE; | 180 virtual void TearDown() OVERRIDE; |
| 182 virtual syncable::Directory* directory() OVERRIDE; | 181 virtual syncable::Directory* directory() OVERRIDE; |
| 183 | 182 |
| 184 private: | 183 private: |
| 185 TestDirectorySetterUpper dir_maker_; | 184 TestDirectorySetterUpper dir_maker_; |
| 186 }; | 185 }; |
| 187 | 186 |
| 188 } // namespace syncer | 187 } // namespace syncer |
| 189 | 188 |
| 190 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ | 189 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ |
| OLD | NEW |