Home | History | Annotate | Download | only in search_engines

Lines Matching defs:SYNC

23 #include "sync/api/sync_change_processor_wrapper_for_test.h"
24 #include "sync/api/sync_error_factory.h"
25 #include "sync/api/sync_error_factory_mock.h"
26 #include "sync/protocol/search_engine_specifics.pb.h"
27 #include "sync/protocol/sync.pb.h"
86 // back up to Sync.
195 // Helper that creates some initial sync data. We cheat a little by specifying
218 // Our dummy ChangeProcessor used to inspect changes pushed to Sync.
234 // in the prepopulate data, which the sync tests don't care about (and would
364 // Create a TemplateURL and convert it into a sync specific type.
480 // Sync is better by timestamp but local is Default.
482 // Sync is better by timestamp but local is Create by Policy.
484 // Tie. Sync wins.
497 ASCIIToUTF16("synckey"), "www.sync.com", "syncguid",
510 // This tests cases where neither the sync nor the local TemplateURL are
513 // Create a keyword that conflicts, and make it older. Sync keyword is
531 // Sync is newer. Original TemplateURL keyword is uniquified. A SyncChange
533 // the local GUID doesn't appear in the sync GUID list). Also ensure that
554 // Equal times. Same result as above. Sync left alone, original uniquified so
571 // Sync is newer, but original TemplateURL is created by policy, so it wins.
572 // Sync keyword is uniquified, and a syncer::SyncChange is added.
611 // We expect the model to have accepted all of the initial sync data. Search
643 // We expect the model to have accepted all of the initial sync data. Search
654 // Ensure that Sync received the expected changes.
669 // The local data is the same as the sync data merged in. i.e. - There have
700 // The local data is the same as the sync data merged in, but timestamps have
747 // GUIDs all differ, so this is data to be added from Sync, but the timestamps
748 // from Sync are older. Set up the local data so that one is a dupe, one has a
765 // with sync values if there is a keyword conflict. The unique keyword should
769 // The key1 duplicate results in the local copy winning. Ensure that Sync's
770 // copy was not added, and the local copy is pushed upstream to Sync as an
771 // update. The local copy should have received the sync data's GUID.
782 // the sync guid is pushed upstream to Sync.
803 // One ADDs should be pushed up to Sync.
808 // All the sync items had new guids, but only one doesn't conflict and is
819 // GUIDs all differ, so Sync may overtake some entries, but the timestamps
820 // from Sync are newer. Set up the local data so that one is a dupe, one has a
840 // The key1 duplicate results in Sync's copy winning. Ensure that Sync's
847 // The key2 keyword conflict results in Sync's copy winning, so ensure it
862 // One ADDs should be pushed up to Sync.
867 // One of the sync items is added directly without conflict. The other two
937 // has a newer timestamp, so Sync will win in these scenarios.
948 // Sync is always newer here, so it should always win. We should create
994 // Local data wins twice so two updates are pushed up to Sync.
1023 // changes to Sync whenever local changes are made to TemplateURLs.
1073 // Create some sync changes that will conflict with the extension keywords.
1099 // Create a couple of sync entries with autogenerated keywords.
1110 // Now try to sync the data locally.
1137 // Sync brings in some autogenerated keywords, but the generated keywords we
1171 // the sync TemplateURLs (GUIDs transferred over).
1196 // Sync brings in two autogenerated keywords and both use Google base URLs.
1236 // Create a sync entry with duplicate encodings.
1258 // Now try to sync the data locally.
1343 // Ensure that the sync changes were not accepted.
1360 // successfully associated with Sync in the first place.
1369 // Ensure that the sync changes were not accepted.
1411 // We should have updated the original TemplateURL with Sync's version.
1538 // further uniquifying the keyword to avoid infinite sync loops. The synced
1583 // the model but is expected in the initial sync. Ensure that this doesn't
1590 // Now sync the initial data, which will include the search engine entry
1626 // Now sync the initial data.
1664 // Add a new entry from Sync. It should still sync in despite the default
1685 // from Sync.
1694 // If the value from Sync is a duplicate of the local default and is newer, it
1758 // Create a couple of bogus entries to sync.
1768 // Now try to sync the data locally.
1802 // "aaa" should have been pruned out on account of not being from Sync.
1804 // The set of pre-sync deletes should be cleared so they're not reused if
1808 // Those sync items deleted via pre-sync-deletes should not get added. The
1809 // remaining sync item (key3) should though.
1853 // Bring down a copy of the prepopulate engine from Sync with the old values,
1878 // All the sync data is old, so nothing should change locally.
1915 // generate a sync change.
1930 SYNC,
1940 // to Sync.
1958 // Both are synced and the new sync entry is better: Local is uniquified and
1959 // UPDATE sent. Sync is added.
1960 {SYNC, BOTH, LOCAL, LOCAL, BOTH, true, {1, 1, 0}},
1961 // Both are synced and the local entry is better: Sync is uniquified and
1963 {LOCAL, BOTH, SYNC, SYNC, BOTH, true, {1, 1, 0}},
1964 // Local was not known to Sync and the new sync entry is better: Sync is
1966 {SYNC, SYNC, NEITHER, NEITHER, SYNC, true, {1, 0, 1}},
1967 // Local was not known to sync and the local entry is better: Local is
1968 // updated with sync GUID, Sync is not added. UPDATE sent for Sync.
1969 {LOCAL, SYNC, SYNC, NEITHER, SYNC, true, {0, 1, 0}},
1973 {NEITHER, SYNC, NEITHER, NEITHER, BOTH, false, {1, 0, 0}},
1992 test_cases[i].conflict_winner == SYNC ? 110 : 90;
2008 if (test_cases[i].synced_at_start == SYNC ||
2039 else if (test_cases[i].update_sent == SYNC)
2055 if (test_cases[i].turl_uniquified == SYNC) {
2062 // Sync TemplateURL overtakes the local one). Also remove the present
2072 if (test_cases[i].present_in_model == SYNC ||