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

Side by Side Diff: sync/engine/download_unittest.cc

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + address comments Created 6 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/engine/download.h" 5 #include "sync/engine/download.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "sync/engine/sync_directory_update_handler.h" 9 #include "sync/engine/sync_directory_update_handler.h"
10 #include "sync/internal_api/public/base/model_type_test_util.h" 10 #include "sync/internal_api/public/base/model_type_test_util.h"
11 #include "sync/protocol/sync.pb.h" 11 #include "sync/protocol/sync.pb.h"
12 #include "sync/sessions/debug_info_getter.h" 12 #include "sync/sessions/debug_info_getter.h"
13 #include "sync/sessions/nudge_tracker.h" 13 #include "sync/sessions/nudge_tracker.h"
14 #include "sync/sessions/status_controller.h" 14 #include "sync/sessions/status_controller.h"
15 #include "sync/syncable/directory.h" 15 #include "sync/syncable/directory.h"
16 #include "sync/test/engine/fake_model_worker.h" 16 #include "sync/test/engine/fake_model_worker.h"
17 #include "sync/test/engine/test_directory_setter_upper.h" 17 #include "sync/test/engine/test_directory_setter_upper.h"
18 #include "sync/test/sessions/mock_debug_info_getter.h" 18 #include "sync/test/sessions/mock_debug_info_getter.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 using sessions::MockDebugInfoGetter; 23 using sessions::MockDebugInfoGetter;
24 24
25 // A test fixture for tests exercising download updates functions. 25 // A test fixture for tests exercising download updates functions.
26 class DownloadUpdatesTest : public ::testing::Test { 26 class DownloadUpdatesTest : public ::testing::Test {
27 protected: 27 protected:
28 DownloadUpdatesTest() 28 DownloadUpdatesTest() {}
29 : update_handler_map_deleter_(&update_handler_map_) {
30 }
31 29
32 virtual void SetUp() { 30 virtual void SetUp() {
33 dir_maker_.SetUp(); 31 dir_maker_.SetUp();
34 32
35 AddUpdateHandler(AUTOFILL, GROUP_DB); 33 AddUpdateHandler(AUTOFILL, GROUP_DB);
36 AddUpdateHandler(BOOKMARKS, GROUP_UI); 34 AddUpdateHandler(BOOKMARKS, GROUP_UI);
37 AddUpdateHandler(PREFERENCES, GROUP_UI); 35 AddUpdateHandler(PREFERENCES, GROUP_UI);
38 } 36 }
39 37
40 virtual void TearDown() { 38 virtual void TearDown() {
41 dir_maker_.TearDown(); 39 dir_maker_.TearDown();
42 } 40 }
43 41
44 ModelTypeSet proto_request_types() { 42 ModelTypeSet proto_request_types() {
45 ModelTypeSet types; 43 return proto_request_types_;
46 for (UpdateHandlerMap::iterator it = update_handler_map_.begin();
47 it != update_handler_map_.end(); ++it) {
48 types.Put(it->first);
49 }
50 return types;
51 } 44 }
52 45
53 syncable::Directory* directory() { 46 syncable::Directory* directory() {
54 return dir_maker_.directory(); 47 return dir_maker_.directory();
55 } 48 }
56 49
57 UpdateHandlerMap* update_handler_map() { 50 GetUpdatesProcessor* get_updates_processor() {
58 return &update_handler_map_; 51 return get_updates_processor_.get();
59 } 52 }
60 53
61 void InitFakeUpdateResponse(sync_pb::GetUpdatesResponse* response) { 54 void InitFakeUpdateResponse(sync_pb::GetUpdatesResponse* response) {
62 ModelTypeSet types = proto_request_types(); 55 ModelTypeSet types = proto_request_types();
63 56
64 for (ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) { 57 for (ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) {
65 sync_pb::DataTypeProgressMarker* marker = 58 sync_pb::DataTypeProgressMarker* marker =
66 response->add_new_progress_marker(); 59 response->add_new_progress_marker();
67 marker->set_data_type_id(GetSpecificsFieldNumberFromModelType(it.Get())); 60 marker->set_data_type_id(GetSpecificsFieldNumberFromModelType(it.Get()));
68 marker->set_token("foobarbaz"); 61 marker->set_token("foobarbaz");
69 } 62 }
70 63
71 response->set_changes_remaining(0); 64 response->set_changes_remaining(0);
72 } 65 }
73 66
74 private: 67 private:
75 void AddUpdateHandler(ModelType type, ModelSafeGroup group) { 68 void AddUpdateHandler(ModelType type, ModelSafeGroup group) {
76 DCHECK(directory()); 69 DCHECK(directory());
70
71 proto_request_types_.Put(type);
72
77 scoped_refptr<ModelSafeWorker> worker = new FakeModelWorker(group); 73 scoped_refptr<ModelSafeWorker> worker = new FakeModelWorker(group);
78 SyncDirectoryUpdateHandler* handler = 74 SyncDirectoryUpdateHandler* handler =
79 new SyncDirectoryUpdateHandler(directory(), type, worker); 75 new SyncDirectoryUpdateHandler(directory(), type, worker);
80 update_handler_map_.insert(std::make_pair(type, handler)); 76 update_handler_map_.insert(std::make_pair(type, handler));
77 get_updates_processor_.reset(new GetUpdatesProcessor(&update_handler_map_));
81 } 78 }
82 79
83 base::MessageLoop loop_; // Needed for directory init. 80 base::MessageLoop loop_; // Needed for directory init.
84 TestDirectorySetterUpper dir_maker_; 81 TestDirectorySetterUpper dir_maker_;
85 82
83 ModelTypeSet proto_request_types_;
86 UpdateHandlerMap update_handler_map_; 84 UpdateHandlerMap update_handler_map_;
87 STLValueDeleter<UpdateHandlerMap> update_handler_map_deleter_; 85 scoped_ptr<GetUpdatesProcessor> get_updates_processor_;
88 86
89 DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesTest); 87 DISALLOW_COPY_AND_ASSIGN(DownloadUpdatesTest);
90 }; 88 };
91 89
92 // Basic test to make sure nudges are expressed properly in the request. 90 // Basic test to make sure nudges are expressed properly in the request.
93 TEST_F(DownloadUpdatesTest, BookmarkNudge) { 91 TEST_F(DownloadUpdatesTest, BookmarkNudge) {
94 sessions::NudgeTracker nudge_tracker; 92 sessions::NudgeTracker nudge_tracker;
95 nudge_tracker.RecordLocalChange(ModelTypeSet(BOOKMARKS)); 93 nudge_tracker.RecordLocalChange(ModelTypeSet(BOOKMARKS));
96 94
97 sync_pb::ClientToServerMessage msg; 95 sync_pb::ClientToServerMessage msg;
98 download::BuildNormalDownloadUpdatesImpl(proto_request_types(), 96 download::BuildNormalDownloadUpdatesImpl(proto_request_types(),
99 update_handler_map(), 97 get_updates_processor(),
100 nudge_tracker, 98 nudge_tracker,
101 msg.mutable_get_updates()); 99 msg.mutable_get_updates());
102 100
103 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates(); 101 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates();
104 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::LOCAL, 102 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::LOCAL,
105 gu_msg.caller_info().source()); 103 gu_msg.caller_info().source());
106 EXPECT_EQ(sync_pb::SyncEnums::GU_TRIGGER, gu_msg.get_updates_origin()); 104 EXPECT_EQ(sync_pb::SyncEnums::GU_TRIGGER, gu_msg.get_updates_origin());
107 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) { 105 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) {
108 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber( 106 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber(
109 gu_msg.from_progress_marker(i).data_type_id()); 107 gu_msg.from_progress_marker(i).data_type_id());
(...skipping 27 matching lines...) Expand all
137 BuildInvalidationMap(BOOKMARKS, 1, "bookmark_payload")); 135 BuildInvalidationMap(BOOKMARKS, 1, "bookmark_payload"));
138 nudge_tracker.RecordRemoteInvalidation( 136 nudge_tracker.RecordRemoteInvalidation(
139 BuildInvalidationMap(PREFERENCES, 1, "preferences_payload")); 137 BuildInvalidationMap(PREFERENCES, 1, "preferences_payload"));
140 ModelTypeSet notified_types; 138 ModelTypeSet notified_types;
141 notified_types.Put(AUTOFILL); 139 notified_types.Put(AUTOFILL);
142 notified_types.Put(BOOKMARKS); 140 notified_types.Put(BOOKMARKS);
143 notified_types.Put(PREFERENCES); 141 notified_types.Put(PREFERENCES);
144 142
145 sync_pb::ClientToServerMessage msg; 143 sync_pb::ClientToServerMessage msg;
146 download::BuildNormalDownloadUpdatesImpl(proto_request_types(), 144 download::BuildNormalDownloadUpdatesImpl(proto_request_types(),
147 update_handler_map(), 145 get_updates_processor(),
148 nudge_tracker, 146 nudge_tracker,
149 msg.mutable_get_updates()); 147 msg.mutable_get_updates());
150 148
151 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates(); 149 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates();
152 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::NOTIFICATION, 150 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::NOTIFICATION,
153 gu_msg.caller_info().source()); 151 gu_msg.caller_info().source());
154 EXPECT_EQ(sync_pb::SyncEnums::GU_TRIGGER, gu_msg.get_updates_origin()); 152 EXPECT_EQ(sync_pb::SyncEnums::GU_TRIGGER, gu_msg.get_updates_origin());
155 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) { 153 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) {
156 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber( 154 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber(
157 gu_msg.from_progress_marker(i).data_type_id()); 155 gu_msg.from_progress_marker(i).data_type_id());
(...skipping 13 matching lines...) Expand all
171 EXPECT_FALSE(progress_marker.has_notification_hint()); 169 EXPECT_FALSE(progress_marker.has_notification_hint());
172 EXPECT_EQ(0, gu_trigger.notification_hint_size()); 170 EXPECT_EQ(0, gu_trigger.notification_hint_size());
173 } 171 }
174 } 172 }
175 } 173 }
176 174
177 TEST_F(DownloadUpdatesTest, ConfigureTest) { 175 TEST_F(DownloadUpdatesTest, ConfigureTest) {
178 sync_pb::ClientToServerMessage msg; 176 sync_pb::ClientToServerMessage msg;
179 download::BuildDownloadUpdatesForConfigureImpl( 177 download::BuildDownloadUpdatesForConfigureImpl(
180 proto_request_types(), 178 proto_request_types(),
181 update_handler_map(), 179 get_updates_processor(),
182 sync_pb::GetUpdatesCallerInfo::RECONFIGURATION, 180 sync_pb::GetUpdatesCallerInfo::RECONFIGURATION,
183 msg.mutable_get_updates()); 181 msg.mutable_get_updates());
184 182
185 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates(); 183 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates();
186 184
187 EXPECT_EQ(sync_pb::SyncEnums::RECONFIGURATION, gu_msg.get_updates_origin()); 185 EXPECT_EQ(sync_pb::SyncEnums::RECONFIGURATION, gu_msg.get_updates_origin());
188 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::RECONFIGURATION, 186 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::RECONFIGURATION,
189 gu_msg.caller_info().source()); 187 gu_msg.caller_info().source());
190 188
191 ModelTypeSet progress_types; 189 ModelTypeSet progress_types;
192 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) { 190 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) {
193 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber( 191 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber(
194 gu_msg.from_progress_marker(i).data_type_id()); 192 gu_msg.from_progress_marker(i).data_type_id());
195 progress_types.Put(type); 193 progress_types.Put(type);
196 } 194 }
197 EXPECT_TRUE(proto_request_types().Equals(progress_types)); 195 EXPECT_TRUE(proto_request_types().Equals(progress_types));
198 } 196 }
199 197
200 TEST_F(DownloadUpdatesTest, PollTest) { 198 TEST_F(DownloadUpdatesTest, PollTest) {
201 sync_pb::ClientToServerMessage msg; 199 sync_pb::ClientToServerMessage msg;
202 download::BuildDownloadUpdatesForPollImpl( 200 download::BuildDownloadUpdatesForPollImpl(
203 proto_request_types(), 201 proto_request_types(),
204 update_handler_map(), 202 get_updates_processor(),
205 msg.mutable_get_updates()); 203 msg.mutable_get_updates());
206 204
207 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates(); 205 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates();
208 206
209 EXPECT_EQ(sync_pb::SyncEnums::PERIODIC, gu_msg.get_updates_origin()); 207 EXPECT_EQ(sync_pb::SyncEnums::PERIODIC, gu_msg.get_updates_origin());
210 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::PERIODIC, 208 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::PERIODIC,
211 gu_msg.caller_info().source()); 209 gu_msg.caller_info().source());
212 210
213 ModelTypeSet progress_types; 211 ModelTypeSet progress_types;
214 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) { 212 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) {
215 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber( 213 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber(
216 gu_msg.from_progress_marker(i).data_type_id()); 214 gu_msg.from_progress_marker(i).data_type_id());
217 progress_types.Put(type); 215 progress_types.Put(type);
218 } 216 }
219 EXPECT_TRUE(proto_request_types().Equals(progress_types)); 217 EXPECT_TRUE(proto_request_types().Equals(progress_types));
220 } 218 }
221 219
222 TEST_F(DownloadUpdatesTest, RetryTest) { 220 TEST_F(DownloadUpdatesTest, RetryTest) {
223 sync_pb::ClientToServerMessage msg; 221 sync_pb::ClientToServerMessage msg;
224 download::BuildDownloadUpdatesForRetryImpl( 222 download::BuildDownloadUpdatesForRetryImpl(
225 proto_request_types(), 223 proto_request_types(),
226 update_handler_map(), 224 get_updates_processor(),
227 msg.mutable_get_updates()); 225 msg.mutable_get_updates());
228 226
229 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates(); 227 const sync_pb::GetUpdatesMessage& gu_msg = msg.get_updates();
230 228
231 EXPECT_EQ(sync_pb::SyncEnums::RETRY, gu_msg.get_updates_origin()); 229 EXPECT_EQ(sync_pb::SyncEnums::RETRY, gu_msg.get_updates_origin());
232 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::RETRY, 230 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::RETRY,
233 gu_msg.caller_info().source()); 231 gu_msg.caller_info().source());
234 EXPECT_TRUE(gu_msg.is_retry()); 232 EXPECT_TRUE(gu_msg.is_retry());
235 233
236 ModelTypeSet progress_types; 234 ModelTypeSet progress_types;
237 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) { 235 for (int i = 0; i < gu_msg.from_progress_marker_size(); ++i) {
238 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber( 236 syncer::ModelType type = GetModelTypeFromSpecificsFieldNumber(
239 gu_msg.from_progress_marker(i).data_type_id()); 237 gu_msg.from_progress_marker(i).data_type_id());
240 progress_types.Put(type); 238 progress_types.Put(type);
241 } 239 }
242 EXPECT_TRUE(proto_request_types().Equals(progress_types)); 240 EXPECT_TRUE(proto_request_types().Equals(progress_types));
243 } 241 }
244 242
245 TEST_F(DownloadUpdatesTest, NudgeWithRetryTest) { 243 TEST_F(DownloadUpdatesTest, NudgeWithRetryTest) {
246 sessions::NudgeTracker nudge_tracker; 244 sessions::NudgeTracker nudge_tracker;
247 nudge_tracker.RecordLocalChange(ModelTypeSet(BOOKMARKS)); 245 nudge_tracker.RecordLocalChange(ModelTypeSet(BOOKMARKS));
248 nudge_tracker.set_next_retry_time( 246 nudge_tracker.set_next_retry_time(
249 base::TimeTicks::Now() - base::TimeDelta::FromSeconds(1)); 247 base::TimeTicks::Now() - base::TimeDelta::FromSeconds(1));
250 248
251 sync_pb::ClientToServerMessage msg; 249 sync_pb::ClientToServerMessage msg;
252 download::BuildNormalDownloadUpdatesImpl(proto_request_types(), 250 download::BuildNormalDownloadUpdatesImpl(proto_request_types(),
253 update_handler_map(), 251 get_updates_processor(),
254 nudge_tracker, 252 nudge_tracker,
255 msg.mutable_get_updates()); 253 msg.mutable_get_updates());
256 EXPECT_TRUE(msg.get_updates().is_retry()); 254 EXPECT_TRUE(msg.get_updates().is_retry());
257 } 255 }
258 256
259 // Verify that a bogus response message is detected. 257 // Verify that a bogus response message is detected.
260 TEST_F(DownloadUpdatesTest, InvalidResponse) { 258 TEST_F(DownloadUpdatesTest, InvalidResponse) {
261 sync_pb::GetUpdatesResponse gu_response; 259 sync_pb::GetUpdatesResponse gu_response;
262 InitFakeUpdateResponse(&gu_response); 260 InitFakeUpdateResponse(&gu_response);
263 261
264 // This field is essential for making the client stop looping. If it's unset 262 // This field is essential for making the client stop looping. If it's unset
265 // then something is very wrong. The client should detect this. 263 // then something is very wrong. The client should detect this.
266 gu_response.clear_changes_remaining(); 264 gu_response.clear_changes_remaining();
267 265
268 sessions::StatusController status; 266 sessions::StatusController status;
269 SyncerError error = download::ProcessResponse(gu_response, 267 SyncerError error = download::ProcessResponse(gu_response,
270 proto_request_types(), 268 proto_request_types(),
271 update_handler_map(), 269 get_updates_processor(),
272 &status); 270 &status);
273 EXPECT_EQ(error, SERVER_RESPONSE_VALIDATION_FAILED); 271 EXPECT_EQ(error, SERVER_RESPONSE_VALIDATION_FAILED);
274 } 272 }
275 273
276 // Verify that we correctly detect when there's more work to be done. 274 // Verify that we correctly detect when there's more work to be done.
277 TEST_F(DownloadUpdatesTest, MoreToDownloadResponse) { 275 TEST_F(DownloadUpdatesTest, MoreToDownloadResponse) {
278 sync_pb::GetUpdatesResponse gu_response; 276 sync_pb::GetUpdatesResponse gu_response;
279 InitFakeUpdateResponse(&gu_response); 277 InitFakeUpdateResponse(&gu_response);
280 gu_response.set_changes_remaining(1); 278 gu_response.set_changes_remaining(1);
281 279
282 sessions::StatusController status; 280 sessions::StatusController status;
283 SyncerError error = download::ProcessResponse(gu_response, 281 SyncerError error = download::ProcessResponse(gu_response,
284 proto_request_types(), 282 proto_request_types(),
285 update_handler_map(), 283 get_updates_processor(),
286 &status); 284 &status);
287 EXPECT_EQ(error, SERVER_MORE_TO_DOWNLOAD); 285 EXPECT_EQ(error, SERVER_MORE_TO_DOWNLOAD);
288 } 286 }
289 287
290 // A simple scenario: No updates returned and nothing more to download. 288 // A simple scenario: No updates returned and nothing more to download.
291 TEST_F(DownloadUpdatesTest, NormalResponseTest) { 289 TEST_F(DownloadUpdatesTest, NormalResponseTest) {
292 sync_pb::GetUpdatesResponse gu_response; 290 sync_pb::GetUpdatesResponse gu_response;
293 InitFakeUpdateResponse(&gu_response); 291 InitFakeUpdateResponse(&gu_response);
294 gu_response.set_changes_remaining(0); 292 gu_response.set_changes_remaining(0);
295 293
296 sessions::StatusController status; 294 sessions::StatusController status;
297 SyncerError error = download::ProcessResponse(gu_response, 295 SyncerError error = download::ProcessResponse(gu_response,
298 proto_request_types(), 296 proto_request_types(),
299 update_handler_map(), 297 get_updates_processor(),
300 &status); 298 &status);
301 EXPECT_EQ(error, SYNCER_OK); 299 EXPECT_EQ(error, SYNCER_OK);
302 } 300 }
303 301
304 class DownloadUpdatesDebugInfoTest : public ::testing::Test { 302 class DownloadUpdatesDebugInfoTest : public ::testing::Test {
305 public: 303 public:
306 DownloadUpdatesDebugInfoTest() {} 304 DownloadUpdatesDebugInfoTest() {}
307 virtual ~DownloadUpdatesDebugInfoTest() {} 305 virtual ~DownloadUpdatesDebugInfoTest() {}
308 306
309 sessions::StatusController* status() { 307 sessions::StatusController* status() {
(...skipping 24 matching lines...) Expand all
334 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) { 332 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) {
335 sync_pb::DebugInfo debug_info; 333 sync_pb::DebugInfo debug_info;
336 AddDebugEvent(); 334 AddDebugEvent();
337 download::CopyClientDebugInfo(debug_info_getter(), &debug_info); 335 download::CopyClientDebugInfo(debug_info_getter(), &debug_info);
338 EXPECT_EQ(1, debug_info.events_size()); 336 EXPECT_EQ(1, debug_info.events_size());
339 download::CopyClientDebugInfo(debug_info_getter(), &debug_info); 337 download::CopyClientDebugInfo(debug_info_getter(), &debug_info);
340 EXPECT_EQ(1, debug_info.events_size()); 338 EXPECT_EQ(1, debug_info.events_size());
341 } 339 }
342 340
343 } // namespace syncer 341 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698