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

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

Issue 14113050: sync: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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/test/engine/fake_sync_scheduler.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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 ModelSafeGroup group1, ModelSafeGroup group2, ModelSafeGroup group3) { 187 ModelSafeGroup group1, ModelSafeGroup group2, ModelSafeGroup group3) {
188 std::set<ModelSafeGroup> expected_groups_to_change; 188 std::set<ModelSafeGroup> expected_groups_to_change;
189 expected_groups_to_change.insert(group1); 189 expected_groups_to_change.insert(group1);
190 expected_groups_to_change.insert(group2); 190 expected_groups_to_change.insert(group2);
191 expected_groups_to_change.insert(group3); 191 expected_groups_to_change.insert(group3);
192 EXPECT_EQ(expected_groups_to_change, 192 EXPECT_EQ(expected_groups_to_change,
193 command.GetGroupsToChangeForTest(*session())); 193 command.GetGroupsToChangeForTest(*session()));
194 } 194 }
195 195
196 private: 196 private:
197 MessageLoop message_loop_; 197 base::MessageLoop message_loop_;
198 scoped_ptr<sessions::SyncSessionContext> context_; 198 scoped_ptr<sessions::SyncSessionContext> context_;
199 scoped_ptr<MockConnectionManager> mock_server_; 199 scoped_ptr<MockConnectionManager> mock_server_;
200 scoped_ptr<sessions::SyncSession> session_; 200 scoped_ptr<sessions::SyncSession> session_;
201 std::vector<scoped_refptr<ModelSafeWorker> > workers_; 201 std::vector<scoped_refptr<ModelSafeWorker> > workers_;
202 ModelSafeRoutingInfo routing_info_; 202 ModelSafeRoutingInfo routing_info_;
203 NiceMock<MockDebugInfoGetter> mock_debug_info_getter_; 203 NiceMock<MockDebugInfoGetter> mock_debug_info_getter_;
204 FakeExtensionsActivityMonitor extensions_activity_monitor_; 204 FakeExtensionsActivityMonitor extensions_activity_monitor_;
205 scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_; 205 scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_;
206 TrafficRecorder traffic_recorder_; 206 TrafficRecorder traffic_recorder_;
207 DISALLOW_COPY_AND_ASSIGN(SyncerCommandTestBase); 207 DISALLOW_COPY_AND_ASSIGN(SyncerCommandTestBase);
(...skipping 21 matching lines...) Expand all
229 229
230 virtual void SetUp() OVERRIDE; 230 virtual void SetUp() OVERRIDE;
231 231
232 TestUnrecoverableErrorHandler handler_; 232 TestUnrecoverableErrorHandler handler_;
233 syncable::MockDirectory mock_directory_; 233 syncable::MockDirectory mock_directory_;
234 }; 234 };
235 235
236 } // namespace syncer 236 } // namespace syncer
237 237
238 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ 238 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_
OLDNEW
« no previous file with comments | « sync/test/engine/fake_sync_scheduler.cc ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698