gecko/services/sync/tests/unit
Gregory Szorc 58bcd2801d Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman
Resource currently relies on the Identity singleton to perform
authentication. This is bad magic behavior. Resource instances should
authenticate according to the service instance they are associated with.

This patch removes Identity magic from Resource. Everything using
Resource now explicitly assigns an authenticator which comes from
the service instance/singleton. This required API changes to Collection
and Record.

The preferred method to obtain a Resource instance is to call
getResource() on a service instance.

The end result of this patch looks a little weird, especially in test
code. You have things like Service.resource(Service.cryptoKeysURL).
This ugliness will go away when a unified storage service client is
used.
2012-09-14 16:02:32 -07:00
..
addon1-search.xml Bug 712542 - Apply add-on state before install when installing through Sync; r=Unfocused, r=rnewman 2012-02-20 14:53:03 -08:00
bootstrap1-search.xml Bug 534956 - Part 1 - Sync engine for add-ons; r=mconnor 2011-12-14 17:10:34 -08:00
fake_login_manager.js
head_appinfo.js Bug 772569 - Remove do_load_httpd_js from services test code; r=rnewman 2012-07-10 11:54:12 -07:00
head_helpers.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
head_http_server.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
missing-sourceuri.xml Bug 725083 - Handle undefined sourceURI when installing add-ons; r=rnewman 2012-02-07 14:14:41 -08:00
missing-xpi-search.xml Bug 534956 - Part 1 - Sync engine for add-ons; r=mconnor 2011-12-14 17:10:34 -08:00
places_v10_from_v11.sqlite
rewrite-search.xml Bug 708134 - Rewrite add-on URL to note it was installed by Sync; r=rnewman, Unfocused 2012-01-12 17:45:37 -08:00
test_addon_utils.js Bug 777989 - Move add-on helper functions out of add-ons engine; r=rnewman 2012-07-30 17:05:33 -07:00
test_addons_engine.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_addons_reconciler.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_addons_store.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_addons_tracker.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_batch_fail.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_engine.js Bug 787273 - Part 1: Remove Records singleton; r=rnewman 2012-09-14 16:02:32 -07:00
test_bookmark_legacy_microsummaries_support.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_livemarks.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_order.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_places_query_rewriting.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_record.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_smart_bookmarks.js Bug 787273 - Part 1: Remove Records singleton; r=rnewman 2012-09-14 16:02:32 -07:00
test_bookmark_store.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_bookmark_tracker.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_clients_engine.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_clients_escape.js Bug 786489 - Part 1: Update serverURL and clusterURL through Service; r=rnewman 2012-08-29 14:43:41 -07:00
test_collection_inc_get.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_collections_recovery.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_corrupt_keys.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_engine_abort.js Bug 787273 - Part 1: Remove Records singleton; r=rnewman 2012-09-14 16:02:32 -07:00
test_engine.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_enginemanager.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_errorhandler_filelog.js Bug 785225 - Part 3: Don't expose ErrorHandler as a singleton; r=rnewman 2012-08-29 14:43:40 -07:00
test_errorhandler_sync_checkServerError.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_errorhandler.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_forms_store.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_forms_tracker.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_history_engine.js Bug 787273 - Part 1: Remove Records singleton; r=rnewman 2012-09-14 16:02:32 -07:00
test_history_store.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_history_tracker.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_hmac_error.js Bug 787273 - Part 1: Remove Records singleton; r=rnewman 2012-09-14 16:02:32 -07:00
test_httpd_sync_server.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_identity_manager.js Bug 749957; r=rnewman 2012-05-03 14:25:33 -07:00
test_interval_triggers.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_jpakeclient.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_keys.js Bug 730989 - Refactor identity and authentication in Sync; r=rnewman 2012-03-22 15:49:50 -07:00
test_load_modules.js Bug 783721 - Refactor User API service interaction; r=rnewman 2012-08-29 14:43:39 -07:00
test_node_reassignment.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_notifications.js
test_password_store.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_password_tracker.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_places_guid_downgrade.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_prefs_store.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_prefs_tracker.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_records_crypto.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_records_wbo.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_resource_async.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_resource_ua.js Bug 730989 - Refactor identity and authentication in Sync; r=rnewman 2012-03-22 15:49:50 -07:00
test_resource.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_score_triggers.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_sendcredentials_controller.js Bug 785225 - Part 8: Don't expose SyncScheduler as a singleton; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_attributes.js Bug 783721 - Refactor User API service interaction; r=rnewman 2012-08-29 14:43:39 -07:00
test_service_changePassword.js Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman 2012-04-05 23:26:06 -07:00
test_service_checkAccount.js Bug 720596 - Set both serverURL and clusterURL in test code; utilize constants; r=gps 2012-02-06 09:50:11 -08:00
test_service_cluster.js Bug 781952 - Part 3: Remove unused Service._updateCluster; r=rnewman 2012-08-14 11:34:28 -07:00
test_service_createAccount.js Bug 783721 - Refactor User API service interaction; r=rnewman 2012-08-29 14:43:39 -07:00
test_service_detect_upgrade.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_service_getStorageInfo.js Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman 2012-04-05 23:26:06 -07:00
test_service_login.js Bug 785225 - Part 8: Don't expose SyncScheduler as a singleton; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_migratePrefs.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_passwordUTF8.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_persistLogin.js Bug 730989 - Refactor identity and authentication in Sync; r=rnewman 2012-03-22 15:49:50 -07:00
test_service_startOver.js Bug 786489 - Part 1: Update serverURL and clusterURL through Service; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_startup.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_sync_401.js Bug 785225 - Part 8: Don't expose SyncScheduler as a singleton; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_sync_locked.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_sync_remoteSetup.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_service_sync_updateEnabledEngines.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_service_verifyLogin.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_wipeClient.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_service_wipeServer.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_status_checkSetup.js Bug 730989 - Refactor identity and authentication in Sync; r=rnewman 2012-03-22 15:49:50 -07:00
test_status.js
test_syncengine_sync.js Bug 787273 - Part 1: Remove Records singleton; r=rnewman 2012-09-14 16:02:32 -07:00
test_syncengine.js Bug 786489 - Part 1: Update serverURL and clusterURL through Service; r=rnewman 2012-08-29 14:43:41 -07:00
test_syncscheduler.js Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman 2012-09-14 16:02:32 -07:00
test_syncstoragerequest.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_tab_engine.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_tab_store.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_tab_tracker.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_tracker_addChanged.js Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman 2012-08-29 14:43:41 -07:00
test_upgrade_old_sync_key.js Bug 730989 - Refactor identity and authentication in Sync; r=rnewman 2012-03-22 15:49:50 -07:00
test_utils_catch.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_utils_deepEquals.js
test_utils_deferGetSet.js
test_utils_deriveKey.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_utils_getErrorString.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
test_utils_getIcon.js
test_utils_keyEncoding.js Bug 745396 - Refactor Sync utility functions into services-{common,crypto}; r=rnewman 2012-04-16 12:19:01 -07:00
test_utils_lazyStrings.js Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman 2012-04-05 23:26:06 -07:00
test_utils_lock.js
test_utils_makeGUID.js
test_utils_notify.js
test_utils_passphrase.js Bug 785225 - Part 11: Burninate trailing whitespace from tests; r=rnewman 2012-08-29 14:43:41 -07:00
xpcshell.ini Bug 618233 - Re-disable test_jpakeclient.js on Windows for oranges; r=rnewman 2012-08-13 10:29:28 -07:00