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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } | 47 } |
48 virtual void OnReceivedShortPollIntervalUpdate( | 48 virtual void OnReceivedShortPollIntervalUpdate( |
49 const base::TimeDelta& new_interval) OVERRIDE { | 49 const base::TimeDelta& new_interval) OVERRIDE { |
50 FAIL() << "Should not get poll interval update."; | 50 FAIL() << "Should not get poll interval update."; |
51 } | 51 } |
52 virtual void OnReceivedSessionsCommitDelay( | 52 virtual void OnReceivedSessionsCommitDelay( |
53 const base::TimeDelta& new_delay) OVERRIDE { | 53 const base::TimeDelta& new_delay) OVERRIDE { |
54 FAIL() << "Should not get sessions commit delay."; | 54 FAIL() << "Should not get sessions commit delay."; |
55 } | 55 } |
56 virtual void OnShouldStopSyncingPermanently() OVERRIDE { | 56 virtual void OnShouldStopSyncingPermanently() OVERRIDE { |
57 FAIL() << "Shouldn't be forced to stop syncing."; | 57 FAIL() << "Shouldn't be called."; |
| 58 } |
| 59 virtual void OnSyncProtocolError( |
| 60 const sessions::SyncSessionSnapshot& session) OVERRIDE { |
| 61 FAIL() << "Shouldn't be called."; |
58 } | 62 } |
59 | 63 |
60 // ModelSafeWorkerRegistrar implementation. | 64 // ModelSafeWorkerRegistrar implementation. |
61 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { | 65 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { |
62 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; | 66 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; |
63 for (it = workers_.begin(); it != workers_.end(); ++it) | 67 for (it = workers_.begin(); it != workers_.end(); ++it) |
64 out->push_back(*it); | 68 out->push_back(*it); |
65 } | 69 } |
66 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { | 70 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { |
67 ModelSafeRoutingInfo copy(routing_info_); | 71 ModelSafeRoutingInfo copy(routing_info_); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 : SyncerCommandTestWithParam<void*>( | 161 : SyncerCommandTestWithParam<void*>( |
158 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {} | 162 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {} |
159 MockDirectorySetterUpper::MockDirectory* mock_directory() { | 163 MockDirectorySetterUpper::MockDirectory* mock_directory() { |
160 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory(); | 164 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory(); |
161 } | 165 } |
162 }; | 166 }; |
163 | 167 |
164 } // namespace browser_sync | 168 } // namespace browser_sync |
165 | 169 |
166 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ | 170 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ |
OLD | NEW |