Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: sync/test/engine/syncer_command_test.h

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698