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

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

Issue 16298002: Update sync/, sql/, and printing/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « sync/notifier/non_blocking_invalidator.cc ('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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « sync/notifier/non_blocking_invalidator.cc ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698