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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 virtual void OnSyncProtocolError( | 74 virtual void OnSyncProtocolError( |
75 const sessions::SyncSessionSnapshot& session) OVERRIDE { | 75 const sessions::SyncSessionSnapshot& session) OVERRIDE { |
76 return; | 76 return; |
77 } | 77 } |
78 | 78 |
79 std::vector<ModelSafeWorker*> GetWorkers() { | 79 std::vector<ModelSafeWorker*> GetWorkers() { |
80 std::vector<ModelSafeWorker*> workers; | 80 std::vector<ModelSafeWorker*> workers; |
81 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; | 81 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; |
82 for (it = workers_.begin(); it != workers_.end(); ++it) | 82 for (it = workers_.begin(); it != workers_.end(); ++it) |
83 workers.push_back(*it); | 83 workers.push_back(*it.get()); |
84 return workers; | 84 return workers; |
85 } | 85 } |
86 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { | 86 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { |
87 ModelSafeRoutingInfo copy(routing_info_); | 87 ModelSafeRoutingInfo copy(routing_info_); |
88 out->swap(copy); | 88 out->swap(copy); |
89 } | 89 } |
90 | 90 |
91 protected: | 91 protected: |
92 SyncerCommandTestBase(); | 92 SyncerCommandTestBase(); |
93 | 93 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 virtual void SetUp() OVERRIDE; | 229 virtual void SetUp() OVERRIDE; |
230 | 230 |
231 TestUnrecoverableErrorHandler handler_; | 231 TestUnrecoverableErrorHandler handler_; |
232 syncable::MockDirectory mock_directory_; | 232 syncable::MockDirectory mock_directory_; |
233 }; | 233 }; |
234 | 234 |
235 } // namespace syncer | 235 } // namespace syncer |
236 | 236 |
237 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ | 237 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ |
OLD | NEW |