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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 virtual void OnSyncProtocolError( | 77 virtual void OnSyncProtocolError( |
78 const sessions::SyncSessionSnapshot& session) OVERRIDE { | 78 const sessions::SyncSessionSnapshot& session) OVERRIDE { |
79 return; | 79 return; |
80 } | 80 } |
81 | 81 |
82 std::vector<ModelSafeWorker*> GetWorkers() { | 82 std::vector<ModelSafeWorker*> GetWorkers() { |
83 std::vector<ModelSafeWorker*> workers; | 83 std::vector<ModelSafeWorker*> workers; |
84 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; | 84 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; |
85 for (it = workers_.begin(); it != workers_.end(); ++it) | 85 for (it = workers_.begin(); it != workers_.end(); ++it) |
86 workers.push_back(*it); | 86 workers.push_back(it->get()); |
87 return workers; | 87 return workers; |
88 } | 88 } |
89 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { | 89 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { |
90 ModelSafeRoutingInfo copy(routing_info_); | 90 ModelSafeRoutingInfo copy(routing_info_); |
91 out->swap(copy); | 91 out->swap(copy); |
92 } | 92 } |
93 | 93 |
94 protected: | 94 protected: |
95 SyncerCommandTestBase(); | 95 SyncerCommandTestBase(); |
96 | 96 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 virtual void SetUp() OVERRIDE; | 240 virtual void SetUp() OVERRIDE; |
241 | 241 |
242 TestUnrecoverableErrorHandler handler_; | 242 TestUnrecoverableErrorHandler handler_; |
243 syncable::MockDirectory mock_directory_; | 243 syncable::MockDirectory mock_directory_; |
244 }; | 244 }; |
245 | 245 |
246 } // namespace syncer | 246 } // namespace syncer |
247 | 247 |
248 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ | 248 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ |
OLD | NEW |