Lines Matching refs:ASSERT_TRUE
72 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
73 ASSERT_TRUE(AllModelsMatchVerifier());
76 ASSERT_TRUE(AddURL(0, "Google", google_url) != NULL);
77 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
78 ASSERT_TRUE(AddURL(1, "Yahoo", GURL("http://www.yahoo.com")) != NULL);
79 ASSERT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0)));
80 ASSERT_TRUE(AllModelsMatchVerifier());
85 ASSERT_TRUE(AddURL(0, GetBookmarkBarNode(0), 1, "CNN",
87 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
88 ASSERT_TRUE(AllModelsMatchVerifier());
90 ASSERT_TRUE(AddURL(1, "Facebook", GURL("http://www.facebook.com")) != NULL);
91 ASSERT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0)));
92 ASSERT_TRUE(AllModelsMatchVerifier());
95 ASSERT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0)));
96 ASSERT_TRUE(AllModelsMatchVerifier());
101 ASSERT_TRUE(AwaitQuiescence());
102 ASSERT_TRUE(AllModelsMatch());
106 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
107 ASSERT_TRUE(AllModelsMatchVerifier());
114 ASSERT_TRUE(AddURL(0, title, initial_url) != NULL);
115 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
118 ASSERT_TRUE(SetURL(
120 ASSERT_TRUE(SetURL(
122 ASSERT_TRUE(AwaitQuiescence());
123 ASSERT_TRUE(AllModelsMatch());
126 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
127 ASSERT_TRUE(AllModelsMatch());
132 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
133 ASSERT_TRUE(AllModelsMatchVerifier());
135 ASSERT_TRUE(AddFolder(0, kGenericFolderName) != NULL);
136 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
137 ASSERT_TRUE(AllModelsMatchVerifier());
143 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
144 ASSERT_TRUE(AllModelsMatchVerifier());
146 ASSERT_TRUE(AddURL(0, kGenericURLTitle, GURL(kGenericURL)) != NULL);
147 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
148 ASSERT_TRUE(AllModelsMatchVerifier());
153 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
154 ASSERT_TRUE(AllModelsMatchVerifier());
161 ASSERT_TRUE(bookmark != NULL);
162 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
165 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
166 ASSERT_TRUE(AllModelsMatchVerifier());
187 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
188 ASSERT_TRUE(AllModelsMatchVerifier());
191 ASSERT_TRUE(bookmark0 != NULL);
192 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
195 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
196 ASSERT_TRUE(AllModelsMatchVerifier());
201 ASSERT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0)));
202 ASSERT_TRUE(AllModelsMatchVerifier());
206 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
207 ASSERT_TRUE(AllModelsMatchVerifier());
212 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
213 ASSERT_TRUE(AllModelsMatchVerifier());
215 ASSERT_TRUE(AddURL(
217 ASSERT_TRUE(AddURL(0, "File UR", GURL("file://host/path")) != NULL);
218 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
219 ASSERT_TRUE(AllModelsMatchVerifier());
225 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
226 ASSERT_TRUE(AllModelsMatchVerifier());
229 ASSERT_TRUE(folder != NULL);
230 ASSERT_TRUE(AddURL(
232 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
233 ASSERT_TRUE(AllModelsMatchVerifier());
239 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
240 ASSERT_TRUE(AllModelsMatchVerifier());
245 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
246 ASSERT_TRUE(AddURL(
249 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
250 ASSERT_TRUE(AllModelsMatchVerifier());
256 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
257 ASSERT_TRUE(AllModelsMatchVerifier());
263 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
267 ASSERT_TRUE(folder != NULL);
272 ASSERT_TRUE(
281 ASSERT_TRUE(AddURL(0, GetOtherNode(0), i, title, url) != NULL);
283 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
284 ASSERT_TRUE(AllModelsMatchVerifier());
290 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
291 ASSERT_TRUE(AllModelsMatchVerifier());
295 ASSERT_TRUE(AddURL(0, kGenericURLTitle, url0) != NULL);
296 ASSERT_TRUE(AddURL(0, kGenericURLTitle, url1) != NULL);
297 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
298 ASSERT_TRUE(AllModelsMatchVerifier());
304 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
305 ASSERT_TRUE(AllModelsMatchVerifier());
309 ASSERT_TRUE(AddURL(0, title0, GURL(kGenericURL)) != NULL);
310 ASSERT_TRUE(AddURL(0, title1, GURL(kGenericURL)) != NULL);
311 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
312 ASSERT_TRUE(AllModelsMatchVerifier());
317 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
318 ASSERT_TRUE(AllModelsMatchVerifier());
322 ASSERT_TRUE(bookmark != NULL);
323 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
324 ASSERT_TRUE(AllModelsMatchVerifier());
328 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
329 ASSERT_TRUE(AllModelsMatchVerifier());
334 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
335 ASSERT_TRUE(AllModelsMatchVerifier());
339 ASSERT_TRUE(bookmark != NULL);
340 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
341 ASSERT_TRUE(AllModelsMatchVerifier());
344 ASSERT_TRUE(SetURL(0, bookmark, new_url) != NULL);
345 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
346 ASSERT_TRUE(AllModelsMatchVerifier());
353 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
354 ASSERT_TRUE(AllModelsMatchVerifier());
358 ASSERT_TRUE(bookmark != NULL);
359 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
360 ASSERT_TRUE(AllModelsMatchVerifier());
364 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
365 ASSERT_TRUE(AllModelsMatchVerifier());
368 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
369 ASSERT_TRUE(AllModelsMatchVerifier());
375 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
376 ASSERT_TRUE(AllModelsMatchVerifier());
380 ASSERT_TRUE(bookmark != NULL);
381 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
382 ASSERT_TRUE(AllModelsMatchVerifier());
385 ASSERT_TRUE(SetURL(0, bookmark, new_url) != NULL);
386 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
387 ASSERT_TRUE(AllModelsMatchVerifier());
389 ASSERT_TRUE(SetURL(0, bookmark, url) != NULL);
390 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
391 ASSERT_TRUE(AllModelsMatchVerifier());
396 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
397 ASSERT_TRUE(AllModelsMatchVerifier());
401 ASSERT_TRUE(AddURL(
403 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
404 ASSERT_TRUE(AllModelsMatchVerifier());
408 ASSERT_TRUE
409 ASSERT_TRUE(AllModelsMatchVerifier());
414 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
415 ASSERT_TRUE(AllModelsMatchVerifier());
419 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
420 ASSERT_TRUE(AllModelsMatchVerifier());
424 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
425 ASSERT_TRUE(AllModelsMatchVerifier());
431 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
432 ASSERT_TRUE(AllModelsMatchVerifier());
436 ASSERT_TRUE(folder != NULL);
441 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
444 ASSERT_TRUE(AddFolder(0, folder, i, title) != NULL);
447 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
448 ASSERT_TRUE(AllModelsMatchVerifier());
452 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
453 ASSERT_TRUE(AllModelsMatchVerifier());
459 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
460 ASSERT_TRUE(AllModelsMatchVerifier());
463 ASSERT_TRUE(folder != NULL);
467 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
475 ASSERT_TRUE(AddURL(0, subfolder, i, title, url) != NULL);
478 ASSERT_TRUE(AddFolder(0, subfolder, i, title) != NULL);
481 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
482 ASSERT_TRUE(AllModelsMatchVerifier());
486 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
487 ASSERT_TRUE(AllModelsMatchVerifier());
492 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
493 ASSERT_TRUE(AllModelsMatchVerifier());
498 ASSERT_TRUE(bookmark != NULL);
499 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
500 ASSERT_TRUE(AllModelsMatchVerifier());
505 ASSERT_TRUE(bookmark != NULL);
507 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
508 ASSERT_TRUE(AllModelsMatchVerifier());
514 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
515 ASSERT_TRUE(AllModelsMatchVerifier());
517 ASSERT_TRUE(AddURL(
519 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
520 ASSERT_TRUE(AllModelsMatchVerifier());
523 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
524 ASSERT_TRUE(AllModelsMatchVerifier());
530 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
531 ASSERT_TRUE(AllModelsMatchVerifier());
536 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
538 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
539 ASSERT_TRUE(AllModelsMatchVerifier());
542 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
543 ASSERT_TRUE(AllModelsMatchVerifier());
549 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
550 ASSERT_TRUE(AllModelsMatchVerifier());
553 ASSERT_TRUE(folder != NULL);
557 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
559 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
560 ASSERT_TRUE(AllModelsMatchVerifier());
563 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
564 ASSERT_TRUE(AllModelsMatchVerifier());
570 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
571 ASSERT_TRUE(AllModelsMatchVerifier());
574 ASSERT_TRUE(folder != NULL);
578 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
580 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
581 ASSERT_TRUE(AllModelsMatchVerifier());
584 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
585 ASSERT_TRUE(AllModelsMatchVerifier());
591 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
592 ASSERT_TRUE(AllModelsMatchVerifier());
595 ASSERT_TRUE(folder != NULL);
599 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
601 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
602 ASSERT_TRUE(AllModelsMatchVerifier());
605 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
606 ASSERT_TRUE(AllModelsMatchVerifier());
612 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
613 ASSERT_TRUE(AllModelsMatchVerifier());
616 ASSERT_TRUE(folder != NULL);
620 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
622 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
623 ASSERT_TRUE(AllModelsMatchVerifier());
629 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
630 ASSERT_TRUE(AllModelsMatchVerifier());
636 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
637 ASSERT_TRUE(AllModelsMatchVerifier());
639 ASSERT_TRUE(AddFolder(0, kGenericFolderName) != NULL);
640 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
641 ASSERT_TRUE(AllModelsMatchVerifier());
644 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
645 ASSERT_TRUE(AllModelsMatchVerifier());
651 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
652 ASSERT_TRUE(AllModelsMatchVerifier());
654 ASSERT_TRUE(AddFolder(0, kGenericFolderName) != NULL);
659 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
662 ASSERT_TRUE(AddFolder(0, i, title) != NULL);
665 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
666 ASSERT_TRUE(AllModelsMatchVerifier());
669 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
670 ASSERT_TRUE(AllModelsMatchVerifier());
676 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
677 ASSERT_TRUE(AllModelsMatchVerifier());
679 ASSERT_TRUE(AddURL(0, kGenericURLTitle, GURL(kGenericURL)) != NULL);
681 ASSERT_TRUE(folder != NULL);
686 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
689 ASSERT_TRUE(AddFolder(0, i, title) != NULL);
695 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
697 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
698 ASSERT_TRUE(AllModelsMatchVerifier());
701 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
702 ASSERT_TRUE(AllModelsMatchVerifier());
708 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
709 ASSERT_TRUE(AllModelsMatchVerifier());
711 ASSERT_TRUE(AddURL(0, kGenericURLTitle, GURL(kGenericURL)) != NULL);
713 ASSERT_TRUE(folder != NULL);
718 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
721 ASSERT_TRUE(AddFolder(0, i, title) != NULL);
728 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
733 ASSERT_TRUE(subfolder != NULL);
739 ASSERT_TRUE(AddURL(
743 ASSERT_TRUE(AddFolder(
750 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
751 ASSERT_TRUE(AllModelsMatchVerifier());
754 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
755 ASSERT_TRUE(AllModelsMatchVerifier());
761 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
762 ASSERT_TRUE(AllModelsMatchVerifier());
765 ASSERT_TRUE(folder != NULL);
769 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
773 ASSERT_TRUE(subfolder != NULL);
778 ASSERT_TRUE(AddURL(0, subfolder, i, title, url) != NULL);
781 ASSERT_TRUE(AddFolder(0, subfolder, i, title) != NULL);
784 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
785 ASSERT_TRUE(AllModelsMatchVerifier());
788 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
789 ASSERT_TRUE(AllModelsMatchVerifier());
795 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
796 ASSERT_TRUE(AllModelsMatchVerifier());
804 ASSERT_TRUE(bookmark0 != NULL);
805 ASSERT_TRUE(bookmark1 != NULL);
806 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
807 ASSERT_TRUE(AllModelsMatchVerifier());
810 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
811 ASSERT_TRUE(AllModelsMatchVerifier());
816 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
817 ASSERT_TRUE(AllModelsMatchVerifier());
822 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
824 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
825 ASSERT_TRUE(AllModelsMatchVerifier());
828 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
829 ASSERT_TRUE(AllModelsMatchVerifier());
835 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
836 ASSERT_TRUE(AllModelsMatchVerifier());
838 ASSERT_TRUE(AddURL(0, kGenericURLTitle, GURL(kGenericURL)) != NULL);
840 ASSERT_TRUE(folder != NULL);
844 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
846 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
847 ASSERT_TRUE(AllModelsMatchVerifier());
854 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
855 ASSERT_TRUE(AllModelsMatchVerifier());
862 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
863 ASSERT_TRUE(AllModelsMatchVerifier());
865 ASSERT_TRUE(AddURL(0, kGenericURLTitle, GURL(kGenericURL)) != NULL);
867 ASSERT_TRUE(folder != NULL);
871 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
873 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
874 ASSERT_TRUE(AllModelsMatchVerifier());
879 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
880 ASSERT_TRUE(AllModelsMatchVerifier());
887 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
888 ASSERT_TRUE(AllModelsMatchVerifier());
891 ASSERT_TRUE(folder != NULL);
895 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
899 ASSERT_TRUE(subfolder != NULL);
903 ASSERT_TRUE(AddURL(0, subfolder, i, title, url) != NULL);
905 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
906 ASSERT_TRUE(AllModelsMatchVerifier());
912 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
913 ASSERT_TRUE(AllModelsMatchVerifier());
919 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
920 ASSERT_TRUE(AllModelsMatchVerifier());
923 ASSERT_TRUE(folder != NULL);
927 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
931 ASSERT_TRUE(subfolder != NULL);
935 ASSERT_TRUE(AddURL(0, subfolder, i, title, url) != NULL);
937 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
938 ASSERT_TRUE(AllModelsMatchVerifier());
944 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
945 ASSERT_TRUE(AllModelsMatchVerifier());
950 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
951 ASSERT_TRUE(AllModelsMatchVerifier());
961 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
965 ASSERT_TRUE(folder != NULL);
972 ASSERT_TRUE(AddURL(0, folder_L10, i, title, url) != NULL);
974 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
975 ASSERT_TRUE(AllModelsMatchVerifier());
984 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
985 ASSERT_TRUE(AllModelsMatchVerifier());
991 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
992 ASSERT_TRUE(AllModelsMatchVerifier());
1002 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
1006 ASSERT_TRUE(folder != NULL);
1013 ASSERT_TRUE(AddURL(0, folder_L0, 0, title, url) != NULL);
1015 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1016 ASSERT_TRUE(AllModelsMatchVerifier());
1024 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1025 ASSERT_TRUE(AllModelsMatchVerifier());
1031 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1032 ASSERT_TRUE(AllModelsMatchVerifier());
1041 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
1046 ASSERT_TRUE(folder != NULL);
1051 ASSERT_TRUE(folder != NULL);
1052 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1053 ASSERT_TRUE(AllModelsMatchVerifier());
1056 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1057 ASSERT_TRUE(AllModelsMatchVerifier());
1063 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1064 ASSERT_TRUE(AllModelsMatchVerifier());
1073 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
1077 ASSERT_TRUE(folder != NULL);
1082 ASSERT_TRUE(folder != NULL);
1086 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
1088 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1089 ASSERT_TRUE(AllModelsMatchVerifier());
1092 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1093 ASSERT_TRUE(AllModelsMatchVerifier());
1099 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1100 ASSERT_TRUE(AllModelsMatchVerifier());
1109 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
1114 ASSERT_TRUE(folder != NULL);
1119 ASSERT_TRUE(folder != NULL);
1123 ASSERT_TRUE(AddURL(0, folder, i, title, url) != NULL);
1125 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1126 ASSERT_TRUE(AllModelsMatchVerifier());
1129 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1130 ASSERT_TRUE(AllModelsMatchVerifier());
1136 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1137 ASSERT_TRUE(AllModelsMatchVerifier());
1142 ASSERT_TRUE(folder != NULL);
1146 ASSERT_TRUE(AddURL(0, folder, j, title, url) != NULL);
1149 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1150 ASSERT_TRUE(AllModelsMatchVerifier());
1153 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1154 ASSERT_TRUE(AllModelsMatchVerifier());
1160 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1161 ASSERT_TRUE(AllModelsMatchVerifier());
1166 ASSERT_TRUE(folder != NULL);
1170 ASSERT_TRUE(AddURL(0, folder, j, title, url) != NULL);
1173 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1174 ASSERT_TRUE(AllModelsMatchVerifier());
1177 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1178 ASSERT_TRUE(AllModelsMatchVerifier());
1184 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1185 ASSERT_TRUE(AllModelsMatchVerifier());
1191 ASSERT_TRUE(AddURL(0, title0, url0) != NULL);
1194 ASSERT_TRUE(AddURL(1, title1, url1) != NULL);
1196 ASSERT_TRUE(AwaitQuiescence());
1197 ASSERT_TRUE(AllModelsMatch());
1204 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1205 ASSERT_TRUE(AllModelsMatchVerifier());
1213 ASSERT_TRUE(AddURL(0, title, url) != NULL);
1214 ASSERT_TRUE(AddURL(1, title, url) != NULL);
1216 ASSERT_TRUE(AwaitQuiescence());
1217 ASSERT_TRUE(AllModelsMatch());
1223 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1224 ASSERT_TRUE(AwaitQuiescence());
1225 ASSERT_TRUE(AllModelsMatchVerifier());
1231 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1235 ASSERT_TRUE(folder0 != NULL);
1236 ASSERT_TRUE(AddURL(0, folder0, 0, "Bookmark 0", GURL(kGenericURL)) != NULL);
1237 ASSERT_TRUE(AddURL(0, folder0, 1, "Bookmark 1", GURL(kGenericURL)) != NULL);
1238 ASSERT_TRUE(AddURL(0, folder0, 2, "Bookmark 2", GURL(kGenericURL)) != NULL);
1241 ASSERT_TRUE(folder1 != NULL);
1242 ASSERT_TRUE(AddURL(1, folder1, 0, "bOoKmArK 0", GURL(kGenericURL)) != NULL);
1243 ASSERT_TRUE(AddURL(1, folder1, 1, "BooKMarK 1", GURL(kGenericURL)) != NULL);
1244 ASSERT_TRUE(AddURL(1, folder1, 2, "bOOKMARK 2", GURL(kGenericURL)) != NULL);
1246 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1247 ASSERT_TRUE(AwaitQuiescence());
1248 ASSERT_TRUE(AllModelsMatch());
1255 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1261 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
1262 ASSERT_TRUE(AddURL(1, i, title, url) != NULL);
1268 ASSERT_TRUE(AddURL(0, i, title0, url0) != NULL);
1271 ASSERT_TRUE(AddURL(1, i, title1, url1) != NULL);
1274 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1275 ASSERT_TRUE(AwaitQuiescence());
1276 ASSERT_TRUE(AllModelsMatch());
1283 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1289 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
1290 ASSERT_TRUE(AddURL(1, i, title, url) != NULL);
1296 ASSERT_TRUE(AddURL(1, i, title, url) != NULL);
1299 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1300 ASSERT_TRUE(AwaitQuiescence());
1301 ASSERT_TRUE(AllModelsMatch());
1308 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1314 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
1315 ASSERT_TRUE(AddURL(1, i, title, url) != NULL);
1318 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1319 ASSERT_TRUE(AwaitQuiescence());
1320 ASSERT_TRUE(AllModelsMatch());
1327 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1331 ASSERT_TRUE(folder0 != NULL);
1333 ASSERT_TRUE(folder1 != NULL);
1337 ASSERT_TRUE(AddURL(0, folder0, i, title0, url0) != NULL);
1340 ASSERT_TRUE(AddURL(1, folder1, i, title1, url1) != NULL);
1342 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1343 ASSERT_TRUE(AwaitQuiescence());
1344 ASSERT_TRUE(AllModelsMatch());
1351 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1357 ASSERT_TRUE(AddURL(0, i, title0, url0) != NULL);
1360 ASSERT_TRUE(AddURL(1, i, title1, url1) != NULL);
1365 ASSERT_TRUE(folder0 != NULL);
1368 ASSERT_TRUE(folder1 != NULL);
1372 ASSERT_TRUE(AddURL(0, folder0, j, title0, url0) != NULL);
1375 ASSERT_TRUE(AddURL(1, folder1, j, title1, url1) != NULL);
1381 ASSERT_TRUE(AddURL(0, title, url) != NULL);
1382 ASSERT_TRUE(AddURL(1, title, url) != NULL);
1384 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1385 ASSERT_TRUE(AwaitQuiescence());
1386 ASSERT_TRUE(AllModelsMatch());
1393 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1398 ASSERT_TRUE(folder != NULL);
1403 ASSERT_TRUE(AddURL(i, folder, j, title, url) != NULL);
1406 ASSERT_TRUE(AddFolder(i, folder, j, title) != NULL);
1410 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1411 ASSERT_TRUE(AwaitQuiescence());
1412 ASSERT_TRUE(AllModelsMatch());
1419 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1425 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
1431 ASSERT_TRUE(AddURL(1, j, title, url) != NULL);
1434 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1435 ASSERT_TRUE(AwaitQuiescence());
1436 ASSERT_TRUE(AllModelsMatch());
1444 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1448 ASSERT_TRUE(folder0 != NULL);
1449 ASSERT_TRUE(AddURL(
1451 ASSERT_TRUE(AddFolder(0, folder0, 1, IndexedSubfolderName(2)) != NULL);
1452 ASSERT_TRUE(AddURL(
1454 ASSERT_TRUE(AddFolder(0, folder0, 3, IndexedSubfolderName(4)) != NULL);
1457 ASSERT_TRUE(folder1 != NULL);
1458 ASSERT_TRUE(AddFolder(1, folder1, 0, IndexedSubfolderName(0)) != NULL);
1459 ASSERT_TRUE(AddFolder(1, folder1, 1, IndexedSubfolderName(2)) != NULL);
1460 ASSERT_TRUE(AddURL(
1462 ASSERT_TRUE(AddFolder(1, folder1, 3, IndexedSubfolderName(5)) != NULL);
1463 ASSERT_TRUE(AddURL(
1466 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1467 ASSERT_TRUE(AwaitQuiescence());
1468 ASSERT_TRUE(AllModelsMatch());
1476 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1481 ASSERT_TRUE(folder0 != NULL);
1482 ASSERT_TRUE(AddURL(
1484 ASSERT_TRUE(AddFolder(0, folder0, 1, IndexedSubfolderName(2)) != NULL);
1485 ASSERT_TRUE(AddURL(
1487 ASSERT_TRUE(AddFolder(0, folder0, 3, IndexedSubfolderName(4)) != NULL);
1490 ASSERT_TRUE(folder1 != NULL);
1491 ASSERT_TRUE(AddFolder(1, folder1, 0, IndexedSubfolderName(5)) != NULL);
1492 ASSERT_TRUE(AddFolder(1, folder1, 1, IndexedSubfolderName(6)) != NULL);
1493 ASSERT_TRUE(AddURL(
1495 ASSERT_TRUE(AddURL(
1498 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1499 ASSERT_TRUE(AwaitQuiescence());
1500 ASSERT_TRUE(AllModelsMatch());
1508 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1514 ASSERT_TRUE(AddURL(0, i, title, url) != NULL);
1520 ASSERT_TRUE(AddURL(0, j, title, url) != NULL);
1523 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1524 ASSERT_TRUE(AwaitQuiescence());
1525 ASSERT_TRUE(AllModelsMatch());
1532 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1541 ASSERT_TRUE(AddURL(0, node_index, title, url) != NULL);
1549 ASSERT_TRUE(AddURL(1, i, title, url) != NULL);
1552 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1553 ASSERT_TRUE(AwaitQuiescence());
1554 ASSERT_TRUE(AllModelsMatch());
1557 ASSERT_TRUE(CountBookmarksWithTitlesMatching(1, IndexedURLTitle(i)) == i);
1563 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1564 ASSERT_TRUE(AllModelsMatchVerifier());
1566 ASSERT_TRUE(GetClient(1)->DisableSyncForDatatype(syncer::BOOKMARKS));
1567 ASSERT_TRUE(AddFolder(1, kGenericFolderName) != NULL);
1568 ASSERT_TRUE(AwaitQuiescence());
1571 ASSERT_TRUE(GetClient(1)->EnableSyncForDatatype(syncer::BOOKMARKS));
1572 ASSERT_TRUE(AwaitQuiescence());
1573 ASSERT_TRUE(AllModelsMatch());
1578 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1579 ASSERT_TRUE(AllModelsMatchVerifier());
1581 ASSERT_TRUE(GetClient(1)->DisableSyncForAllDatatypes());
1582 ASSERT_TRUE(AddFolder(0, IndexedFolderName(0)) != NULL);
1583 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0))));
1586 ASSERT_TRUE(AddFolder(1, IndexedFolderName(1)) != NULL);
1589 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes());
1590 ASSERT_TRUE(AwaitQuiescence());
1591 ASSERT_TRUE(AllModelsMatch());
1597 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1601 ASSERT_TRUE(folder0 != NULL);
1603 ASSERT_TRUE(folder1 != NULL);
1607 ASSERT_TRUE(AddURL(0, folder0, i, title0, url0) != NULL);
1610 ASSERT_TRUE(AddURL(1, folder1, i, title1, url1) != NULL);
1613 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1614 ASSERT_TRUE(AwaitQuiescence());
1615 ASSERT_TRUE(AllModelsMatch());
1621 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1622 ASSERT_TRUE(GetClient(1)->DisableSyncForDatatype(syncer::BOOKMARKS));
1627 ASSERT_TRUE(AddURL(0, GetBookmarkBarNode(0), 0, "bar", bar_url) != NULL);
1628 ASSERT_TRUE(AddURL(0, GetOtherNode(0), 0, "other", other_url) != NULL);
1630 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0))));
1632 ASSERT_TRUE(HasNodeWithURL(0, bar_url));
1633 ASSERT_TRUE(HasNodeWithURL(0, other_url));
1638 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0))));
1641 ASSERT_TRUE(HasNodeWithURL(0, other_url));
1643 ASSERT_TRUE(GetClient(1)->EnableSyncForDatatype(syncer::BOOKMARKS));
1644 ASSERT_TRUE(AwaitQuiescence());
1647 ASSERT_TRUE(HasNodeWithURL(0, other_url));
1649 ASSERT_TRUE(HasNodeWithURL(1, other_url));
1656 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1659 ASSERT_TRUE(folder0 != NULL);
1663 ASSERT_TRUE(AddURL(0, folder0, i, title, url) != NULL);
1665 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1666 ASSERT_TRUE(AllModelsMatchVerifier());
1674 ASSERT_TRUE(AwaitQuiescence());
1675 ASSERT_TRUE(AllModelsMatch());
1683 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1686 ASSERT_TRUE(folder0 != NULL);
1690 ASSERT_TRUE(AddURL(0, folder0, i, title, url) != NULL);
1692 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1693 ASSERT_TRUE(AllModelsMatchVerifier());
1698 ASSERT_TRUE(SetURL(
1700 ASSERT_TRUE(SetURL(
1703 ASSERT_TRUE(AwaitQuiescence());
1704 ASSERT_TRUE(AllModelsMatch());
1712 ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
1721 ASSERT_TRUE(folderA[0] != NULL);
1723 ASSERT_TRUE
1727 ASSERT_TRUE(folderB[0] != NULL);
1729 ASSERT_TRUE(folderB[1] != NULL);
1733 ASSERT_TRUE(AddURL(0, folderB[0], i, title, url) != NULL);
1738 ASSERT_TRUE(folderC[0] != NULL);
1740 ASSERT_TRUE(folderC[1] != NULL);
1744 ASSERT_TRUE(subfolder != NULL);
1748 ASSERT_TRUE(AddURL(0, subfolder, j, title, url) != NULL);
1752 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1753 ASSERT_TRUE(AwaitQuiescence());
1754 ASSERT_TRUE(AllModelsMatch());
1760 ASSERT_TRUE(AwaitQuiescence());
1761 ASSERT_TRUE(AllModelsMatch());
1767 ASSERT_TRUE(AwaitQuiescence());
1768 ASSERT_TRUE(AllModelsMatch());
1774 ASSERT_TRUE(AwaitQuiescence());
1775 ASSERT_TRUE(AllModelsMatch());
1781 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1782 ASSERT_TRUE(AllModelsMatchVerifier());
1784 ASSERT_TRUE(EnableEncryption(0));
1785 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1786 ASSERT_TRUE(IsEncryptionComplete(0));
1787 ASSERT_TRUE(IsEncryptionComplete(1));
1788 ASSERT_TRUE(AllModelsMatchVerifier());
1793 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1794 ASSERT_TRUE(AllModelsMatchVerifier());
1796 ASSERT_TRUE(EnableEncryption(0));
1797 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1798 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1799 ASSERT_TRUE(IsEncryptionComplete(0));
1800 ASSERT_TRUE(IsEncryptionComplete(1));
1801 ASSERT_TRUE(AllModelsMatchVerifier());
1806 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1807 ASSERT_TRUE(AllModelsMatchVerifier());
1809 ASSERT_TRUE(EnableEncryption(0));
1810 ASSERT_TRUE(EnableEncryption(1));
1811 ASSERT_TRUE(AwaitQuiescence());
1812 ASSERT_TRUE(IsEncryptionComplete(0));
1813 ASSERT_TRUE(IsEncryptionComplete(1));
1814 ASSERT_TRUE(AllModelsMatchVerifier());
1819 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1820 ASSERT_TRUE(AllModelsMatchVerifier());
1822 ASSERT_TRUE(EnableEncryption(0));
1823 ASSERT_TRUE(AwaitQuiescence());
1824 ASSERT_TRUE(IsEncryptionComplete(0));
1825 ASSERT_TRUE(IsEncryptionComplete(1));
1826 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1827 ASSERT_TRUE(AddURL(0, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL);
1828 ASSERT_TRUE(AwaitQuiescence());
1829 ASSERT_TRUE(AllModelsMatchVerifier());
1830 ASSERT_TRUE(IsEncryptionComplete(0));
1831 ASSERT_TRUE(IsEncryptionComplete(1));
1836 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1837 ASSERT_TRUE(AllModelsMatchVerifier());
1839 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1840 ASSERT_TRUE(EnableEncryption(0));
1841 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1842 ASSERT_TRUE(IsEncryptionComplete(0));
1843 ASSERT_TRUE(IsEncryptionComplete(1));
1844 ASSERT_TRUE(AllModelsMatchVerifier());
1846 ASSERT_TRUE(AddURL(0, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL);
1847 ASSERT_TRUE(AddFolder(0, IndexedFolderName(0)) != NULL);
1848 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1849 ASSERT_TRUE(AllModelsMatchVerifier());
1854 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1855 ASSERT_TRUE(AllModelsMatchVerifier());
1858 ASSERT_TRUE(AddURL(0, 0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1859 ASSERT_TRUE(AddURL(0, 1, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL);
1860 ASSERT_TRUE(AddURL(0, 2, IndexedURLTitle(2), GURL(IndexedURL(2))) != NULL);
1861 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1862 ASSERT_TRUE(AllModelsMatchVerifier());
1867 ASSERT_TRUE(AwaitPassphraseAccepted(GetSyncService((0))));
1868 ASSERT_TRUE(EnableEncryption(0));
1869 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1870 ASSERT_TRUE(IsEncryptionComplete(0));
1871 ASSERT_TRUE(IsEncryptionComplete(1));
1872 ASSERT_TRUE(GetSyncService((1))->IsPassphraseRequired());
1875 ASSERT_TRUE(AddURL(0, 1, IndexedURLTitle(3), GURL(IndexedURL(3))) != NULL);
1876 ASSERT_TRUE(AddURL(0, 3, IndexedURLTitle(4), GURL(IndexedURL(4))) != NULL);
1881 ASSERT_TRUE(AwaitPassphraseRequired(GetSyncService((1))));
1882 ASSERT_TRUE(SetDecryptionPassphrase(1, kValidPassphrase));
1883 ASSERT_TRUE(AwaitPassphraseAccepted(GetSyncService((1))));
1884 ASSERT_TRUE(AwaitQuiescence());
1890 ASSERT_TRUE(AddURL(1, 5, IndexedURLTitle(5), GURL(IndexedURL(5))) != NULL);
1891 ASSERT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0)));
1901 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1902 ASSERT_TRUE(AllModelsMatchVerifier());
1907 ASSERT_TRUE(AddURL(0, i, IndexedURLTitle(i), GURL(IndexedURL(i))) != NULL);
1911 ASSERT_TRUE(AwaitQuiescence());
1912 ASSERT_TRUE(AllModelsMatchVerifier());
1933 ASSERT_TRUE(AwaitQuiescence());
1934 ASSERT_TRUE(AllModelsMatch());
1954 ASSERT_TRUE(AwaitQuiescence());
1955 ASSERT_TRUE(AllModelsMatch());
1963 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1964 ASSERT_TRUE(AllModelsMatchVerifier());
1970 ASSERT_TRUE(AddURL(0, "Google", GURL("http://www.google.com")));
1971 ASSERT_TRUE(AwaitQuiescence());
1972 ASSERT_TRUE(AllModelsMatch());
1977 ASSERT_TRUE(synced_bookmarks);
1978 ASSERT_TRUE(AddURL(0, synced_bookmarks, 0, "Google2",
1980 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1981 ASSERT_TRUE(AllModelsMatch());
1987 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1988 ASSERT_TRUE(AllModelsMatchVerifier());
2007 ASSERT_TRUE(AddURL(0, folder0, 1, "News", GURL("http://news.google.com")));
2008 ASSERT_TRUE(AddURL(0, folder0, 2, "Yahoo", GURL("http://www.yahoo.com")));
2009 ASSERT_TRUE(AddURL(0, tier1_a, 0, "Gmai", GURL("http://mail.google.com")));
2010 ASSERT_TRUE(AddURL(0, tier1_a, 1, "Google", GURL("http://www.google.com")));
2011 ASSERT_TRUE(
2014 ASSERT_TRUE(AddFolder(0, GetBookmarkBarNode(0), 0, "empty_folder"));
2017 ASSERT_TRUE(AddURL(0, folder1, 0, "Yahoo", GURL("http://www.yahoo.com")));
2018 ASSERT_TRUE(
2021 ASSERT_TRUE(AwaitQuiescence());
2022 ASSERT_TRUE(AllModelsMatch());
2027 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
2031 ASSERT_TRUE(AllModelsMatch());