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

Side by Side Diff: sync/sessions/sync_session_unittest.cc

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/notifier/sync_system_resources_unittest.cc ('k') | sync/syncable/syncable_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "sync/sessions/sync_session.h" 5 #include "sync/sessions/sync_session.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 ModelTypeSet ParamsMeaningAllEnabledTypes() { 124 ModelTypeSet ParamsMeaningAllEnabledTypes() {
125 ModelTypeSet request_params(BOOKMARKS, AUTOFILL); 125 ModelTypeSet request_params(BOOKMARKS, AUTOFILL);
126 return request_params; 126 return request_params;
127 } 127 }
128 128
129 ModelTypeSet ParamsMeaningJustOneEnabledType() { 129 ModelTypeSet ParamsMeaningJustOneEnabledType() {
130 return ModelTypeSet(AUTOFILL); 130 return ModelTypeSet(AUTOFILL);
131 } 131 }
132 132
133 MessageLoop message_loop_; 133 base::MessageLoop message_loop_;
134 bool controller_invocations_allowed_; 134 bool controller_invocations_allowed_;
135 scoped_ptr<SyncSession> session_; 135 scoped_ptr<SyncSession> session_;
136 scoped_ptr<SyncSessionContext> context_; 136 scoped_ptr<SyncSessionContext> context_;
137 std::vector<scoped_refptr<ModelSafeWorker> > workers_; 137 std::vector<scoped_refptr<ModelSafeWorker> > workers_;
138 ModelSafeRoutingInfo routes_; 138 ModelSafeRoutingInfo routes_;
139 FakeExtensionsActivityMonitor extensions_activity_monitor_; 139 FakeExtensionsActivityMonitor extensions_activity_monitor_;
140 scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_; 140 scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_;
141 }; 141 };
142 142
143 TEST_F(SyncSessionTest, MoreToDownloadIfDownloadFailed) { 143 TEST_F(SyncSessionTest, MoreToDownloadIfDownloadFailed) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 ASSERT_EQ(3U, invalidation_map.size()); 188 ASSERT_EQ(3U, invalidation_map.size());
189 EXPECT_EQ(invalidation_map[BOOKMARKS].payload, payload); 189 EXPECT_EQ(invalidation_map[BOOKMARKS].payload, payload);
190 EXPECT_EQ(invalidation_map[PASSWORDS].payload, payload); 190 EXPECT_EQ(invalidation_map[PASSWORDS].payload, payload);
191 EXPECT_EQ(invalidation_map[AUTOFILL].payload, payload); 191 EXPECT_EQ(invalidation_map[AUTOFILL].payload, payload);
192 } 192 }
193 193
194 } // namespace 194 } // namespace
195 } // namespace sessions 195 } // namespace sessions
196 } // namespace syncer 196 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/sync_system_resources_unittest.cc ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698