Gregory Szorc
6d8c9bde2e
Bug 792546 - Part 5: Clean up excessive imports; r=rnewman
2012-09-24 13:46:19 -07:00
Gregory Szorc
a5d3754a20
Bug 792546 - Part 4: Move utility functions to testing-only JS module; r=rnewman
2012-09-24 13:45:49 -07:00
Gregory Szorc
e8b2f8a072
Bug 792546 - Part 2: Move fake services into testing-only JS module; r=rnewman
...
We still import these functions in head.js. This will be cleaned up
later once functionality from head.js that uses them is moved into a
testing-only JS module.
2012-09-24 13:42:54 -07:00
Gregory Szorc
0e89c87676
Bug 792546 - Part 1: Move rotary engine to a testing-only JS module; r=rnewman
2012-09-24 13:42:31 -07:00
Gregory Szorc
ed996f6433
Bug 787273 - Part 5: Remove the CollectionKeys singleton; r=rnewman
...
CollectionKeys is gone. Instead, we export CollectionKeyManager (the
underlying type) and an instance is available on the Service singleton.
2012-09-14 16:02:33 -07:00
Gregory Szorc
e27709479f
Bug 787273 - Part 4: Refactor Identity to not be a singleton; r=rnewman
...
Access to IdentityManager functionality now goes through the Service
singleton.
2012-09-14 16:02:33 -07:00
Gregory Szorc
7ece058f3d
Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman
...
Engines now maintain a reference to the service they belong to. This
allows them to obtain references to other engine instances belonging to
that service and that service only.
Stores and trackers now maintain a reference to the engine they belong
to.
Engine managers now maintain a reference back to a service.
The clients singleton has been removed. It now exists as an instance
variable on Service. Parts of ClientsEngine do behave as singletons
(e.g. commands). This will be addressed in future refactoring.
2012-08-29 14:43:41 -07:00
Gregory Szorc
bf3e935a56
Bug 779391 - Move deepCopy into CommonUtils; r=rnewman
2012-08-01 12:05:29 -07:00
Gregory Szorc
aa2a6a2c99
Bug 753515 - Move json{Load,Save} from services-sync into services-common; r=mconnor
...
--HG--
rename : services/sync/tests/unit/test_utils_json.js => services/common/tests/unit/test_utils_json.js
2012-05-10 12:21:21 -07:00
Gregory Szorc
10e97429b9
Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman
...
--HG--
rename : services/sync/modules/async.js => services/common/async.js
rename : services/sync/modules/log4moz.js => services/common/log4moz.js
rename : services/sync/modules/ext/Observers.js => services/common/observers.js
rename : services/sync/modules/ext/Preferences.js => services/common/preferences.js
rename : services/sync/modules/ext/StringBundle.js => services/common/stringbundle.js
rename : services/sync/tests/unit/test_async_chain.js => services/common/tests/unit/test_async_chain.js
rename : services/sync/tests/unit/test_async_querySpinningly.js => services/common/tests/unit/test_async_querySpinningly.js
rename : services/sync/tests/unit/test_log4moz.js => services/common/tests/unit/test_log4moz.js
rename : services/sync/tests/unit/test_Observers.js => services/common/tests/unit/test_observers.js
rename : services/sync/tests/unit/test_Preferences.js => services/common/tests/unit/test_preferences.js
rename : services/sync/tests/unit/test_restrequest.js => services/common/tests/unit/test_restrequest.js
rename : services/sync/tests/unit/test_utils_makeURI.js => services/common/tests/unit/test_utils_makeURI.js
rename : services/sync/tests/unit/test_utils_namedTimer.js => services/common/tests/unit/test_utils_namedTimer.js
rename : services/sync/tests/unit/test_utils_stackTrace.js => services/common/tests/unit/test_utils_stackTrace.js
2012-04-05 23:26:06 -07:00
Pallani Kumaran
914326cf20
Bug 701967 - Misc code cleanup in Sync's util.js; r=gps
...
This is a re-land of eb4233025be0. References to defunct tests have been
removed.
2012-03-13 02:12:47 +08:00
Gregory Szorc
2a1bfd26ab
Bug 730989 - Refactor identity and authentication in Sync; r=rnewman
2012-03-22 15:49:50 -07:00
Gregory Szorc
9fa8034de1
Backed out changeset eb4233025be0 for xpcshell test failures
2012-03-22 15:49:39 -07:00
Pallani Kumaran
e0042a8a47
Bug 701967 - Misc code cleanup in Sync's util.js; r=gps
2012-03-13 02:12:47 +08:00
Gregory Szorc
f183cc6a27
Bug 729659 - Implement HTTP MAC authorization signing API; r=rnewman, dchan
2012-02-27 17:52:48 -08:00
Gregory Szorc
11e6746349
Bug 710448 - Rewritten Sync record reconciling to handle edge cases; r=rnewman, r=philikon
...
This patch rewrites Sync's record reconciling logic to properly handle
edge cases. Before, there were a few cases where data loss could occur
because of improperly handled and ignored timestamps.
2012-01-25 13:32:05 -08:00
Gregory Szorc
7b81b26dda
Bug 534956 - Part 1 - Sync engine for add-ons; r=mconnor
...
This includes the core engine, support code, and tests. UX is not
included.
2011-12-14 17:10:34 -08:00
Gregory Szorc
70e1165fe4
Bug 709424 - More robust handling of reconciling for duplicate records; r=rnewman
2011-12-13 15:46:54 -08:00
Richard Newman
6769b3bc54
Bug 692714 - Part 1: handle node reassignment on all storage requests. r=philikon
2011-10-27 22:25:01 -07:00
Philipp von Weitershausen
55f63be686
Bug 681864 - Get rid of unused Utils.sha* helpers. r=rnewman
2011-08-26 10:27:29 -07:00
Richard Newman
614e3df10c
Bug 679279 - Part 3: Object.keys and test improvements. r=philikon
2011-08-19 17:17:58 -07:00
Matheus Kerschbaum
5692e9c245
Bug 669040 part 1: Remove build-system and toolkit dependency on mork and morkreader. r=mak
2011-08-06 17:24:52 +02:00
Philipp von Weitershausen
2fed606d34
Bug 669547 - Implement RESTRequest and related components to replace [Async]Resource. r=rnewman
2011-07-06 17:20:36 -07:00
Richard Newman
98ded1bce9
Bug 587420: attempt to fix intermittent orange in test_syncengine_sync.js by using run_next_test. r=philikon
2011-06-27 16:00:27 +01:00
Richard Newman
33f35de853
Bug 656513: part 0: Put SteamEngine, renamed RotaryEngine, into head_helpers.js. r=philiKON
2011-06-14 09:31:31 -07:00
Philipp von Weitershausen
94237c1448
Bug 659112 - Fix dir service provider in test harness. r=rnewman
2011-05-23 14:54:05 -07:00
Richard Newman
496e0ce349
Bug 648364: follow-on for missing case in head_helpers.js. r=philikon
2011-05-23 12:40:22 -07:00
Philipp von Weitershausen
ea60559412
Bug 648364 - Remove dead code from the test harness. r=rnewman
2011-05-20 18:45:51 -07:00
Marco Bonardo
68533cc515
Merging Places to mozilla-central
2011-04-29 16:04:47 +02:00
Marco Bonardo
83e900946a
Bug 524091 - Remove microsummaries support. (Sync changes)
...
r=philikon
2011-04-26 14:25:27 +02:00
Philipp von Weitershausen
976e51bd8c
Bug 636677 - Don't create a new nsICryptoHMAC object for each HMAC verification. r=rnewman a=blocking-fennec
2011-03-01 14:29:41 -08:00
Philipp von Weitershausen
89cafd832b
Bug 636382 - Log4Moz: avoid unnecessary object creation. r=rnewman a=blocking-fennec
2011-02-25 14:42:59 -08:00
Philipp von Weitershausen
29368145cf
Bug 629664 - Attempt at improving randomly failing test. r=rnewman a=orange
2011-01-28 13:21:21 -08:00
Philipp von Weitershausen
5737a8fa0f
Bug 608757 - Make Utils.jsonSave/Load use NetUtil.asyncCopy and asyncFetch, respectively. r=mconnor
2011-01-26 21:43:33 -08:00
Philipp von Weitershausen
df1fed815d
Bug 608757 - Make API and tests for Utils.json{Load|Save} async. r=mconnor
...
Utils.jsonLoad() already has an async API. Utils.jsonSave() had an ill-named 'callback' parameter which s renamed to 'obj'; an optional callback parameter (in the async sense) is added.
2011-01-26 21:43:24 -08:00
Richard Newman
98051adf04
Bug 616265: Add download limit for history, lift magic number. r=mconnor
2010-12-06 17:25:35 -08:00
Richard Newman
ffb07cee37
Bug 603489, 614489: simplified crypto. r=mconnor
2010-11-29 16:41:17 -08:00
Philipp von Weitershausen
57109455df
Bug 587027 - Use as little memory as possible (part 4)
...
Refactor Service._checkSetup() to Status.checkSetup().
Also move the test fixture for WeaveCryptoID to the individual tests that need it.
2010-08-25 15:49:45 -07:00
Philipp von Weitershausen
aefafbf9b3
Bug 583852 - Weave should not be querying on places views [r=mconnor]
...
Tests for the history store.
2010-08-09 18:38:18 +02:00
Philipp von Weitershausen
fc4daed597
Bug 569744 - Delayed loading of service.js causes test failures [r=Mardak]
...
Have FakeCryptoService.generateRandomIV() return 24 bytes so that Weave.Service._checkCrypto() believes it's the real deal. Fix undeclared variable.
2010-06-23 12:36:48 +02:00
Edward Lee
cd82d6dcbb
Bug 573679 - Fix tests to pass on trunk
...
Just take parts of a static string instead of randomly generating bytes and btoa-ing.
2010-06-22 16:47:44 -07:00
Edward Lee
58b70d2360
Bug 573668 - Register appinfo with correct OS for tests
...
Register a fake AppInfo with correct OS if it doesn't exist yet. Just use Svc.Crypto instead of trying to dynamically pick the contract id. Name the head files so they load in appinfo -> helper -> http order.
--HG--
rename : services/sync/tests/unit/bookmark_setup.js => services/sync/tests/unit/head_appinfo.js
rename : services/sync/tests/unit/head_first.js => services/sync/tests/unit/head_helpers.js
2010-06-22 00:20:31 -07:00
Richard Newman
1f647fc550
Bug 651596: eliminate IWeaveCrypto. r=philiKON
2011-04-20 14:27:19 -07:00
Richard Newman
8c8cdf3100
Bug 650208: part 4: upload keys then download them. r=philiKON
2011-04-19 12:35:04 -07:00
Philipp von Weitershausen
195a05f416
Bug 648371 - Convert async tests to use run_next_test helper. r=rnewman
2011-04-18 14:18:36 -07:00
Richard Newman
6e6815e668
Bug 650208: part 2b: clean up basic auth mess in tests. r=philiKON
2011-04-18 13:26:03 -07:00