summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util/cryptographer_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* [Sync] Add intelligent re-encryption support.zea@chromium.org2011-12-131-0/+33
| | | | | | | | | | | | | | | | Add an EncryptIfDifferent method that only encrypts something if the underlying unencrypted data is either different or encrypted with an old key. Modify sync encryption code to use this method instead of their own difference checks. Because of this change, we also now always ensure the nigori has the full set of encryption keys during any SetPassphrase call BUG=107297 TEST=sync_unit_tests, cryptographer's unit_tests Review URL: http://codereview.chromium.org/8759019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114269 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Rename ModelEnumSet to ModelTypeSetakalin@chromium.org2011-12-131-21/+21
| | | | | | | | | | | | | | | Now that the old ModelTypeSet and ModelTypeBitSet are gone, we can rename ModelEnumSet to ModelTypeSet. Conveniently, they're the same number of characters, so this is just a straight rename. Command: git grep -l ModelEnumSet | xargs sed -i '' -e 's/ModelEnumSet/ModelTypeSet/g' BUG=79970 TEST= Review URL: http://codereview.chromium.org/8919021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114149 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Replace all instances of ModelTypeSet with ModelEnumSetakalin@chromium.org2011-12-101-61/+59
| | | | | | | | | | | | | Also change some functions to return ModelEnumSets directly instead of taking a pointer value. BUG=79970 TEST= Review URL: http://codereview.chromium.org/8851006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113906 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] The cryptographer should be able to handle empty or old nigori nodes.zea@chromium.org2011-11-171-2/+9
| | | | | | | | | | | | | This includes never unsetting the encryption status of a type once it has been set. BUG=104218 TEST=unit_tests Review URL: http://codereview.chromium.org/8564032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110578 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Cache encrypted types info in ProfileSyncServiceakalin@chromium.org2011-10-241-21/+72
| | | | | | | | | | | | | | | | Make Cryptographer emit notifications whenever the set of encrypted types changes and also when encryption is complete. Propagate that up to the ProfileSyncService. Since retrieving the encrypted types info requires holding a transaction, that may lead to deadlocks. This prevents that. Remove some unnecessary functions and append ForTest to some other ones. BUG=95619,100698 TEST= Review URL: http://codereview.chromium.org/8356026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106972 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Refactor to ensure turning on encryption encrypts all data types.zea@chromium.org2011-09-091-0/+132
| | | | | | | | | | | | | | | | | | Previously we would not automatically encrypt new datatypes (for example when a datatype is added in a new version). This patch addresses this by adding an explicit encrypt_everything field to the nigori node, and putting the cryptographer in charge of handling the decisions aboutwhat datatypes to encrypt. BUG=90924,95286 TEST=Cryptographer unit tests, Session's SingleClientEnableEncryption integration test. Ensuring any previously set up sync account now marks search_engines and sessions as requiring encryption even when they were never enabled. Review URL: http://codereview.chromium.org/7850006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100505 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 89038, but with a mocked out keychain (mac unit tests were timing out)zea@chromium.org2011-06-151-0/+9
| | | | | | | | | | | | Original codereview at http://codereview.chromium.org/7108067/. BUG=81152 TEST=same as 89038 Review URL: http://codereview.chromium.org/7148022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89105 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89038 - [Sync] Ensure cryptographer ready before encrypting.zea@chromium.org2011-06-141-9/+0
| | | | | | | | | | | | | | | | Also, make cryptographer more robust to errors and add error logging for cases where the cryptographer is not ready when we expect it to be. BUG=81152 TEST=new cryptographer unit tests and synapi unit tests. Review URL: http://codereview.chromium.org/7108067 TBR=zea@chromium.org Review URL: http://codereview.chromium.org/7150024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89068 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Ensure cryptographer ready before encrypting.zea@chromium.org2011-06-141-0/+9
| | | | | | | | | | | | | Also, make cryptographer more robust to errors and add error logging for cases where the cryptographer is not ready when we expect it to be. BUG=81152 TEST=new cryptographer unit tests and synapi unit tests. Review URL: http://codereview.chromium.org/7108067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89038 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Disable tests that are crashing but currently passing due to an overridden ↵tim@chromium.org2010-09-131-2/+14
| | | | | | | | | | | assert handler. BUG=55177,55178,55180,55181 TEST=unit_tests Review URL: http://codereview.chromium.org/3303025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59228 0039d316-1c4b-4281-b951-d872f2087c98
* sync: Add bootstrappability to the Cryptographer.tim@chromium.org2010-08-311-2/+28
| | | | | | | | | | | This avoids requiring prompting the user for a passphrase on each start. TEST=CryptographerTest, CryptographerPackUnpackTest Review URL: http://codereview.chromium.org/3216001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58048 0039d316-1c4b-4281-b951-d872f2087c98
* This is the first patch to support encryption. The Cryptographer classalbertb@chromium.org2010-06-111-0/+134
manages a map of Nigori instances and allows data encrypted using different pass-phrase to be decrypted easily. BUG=none TEST=CryptographerTest, NigoriTest Review URL: http://codereview.chromium.org/2727006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49608 0039d316-1c4b-4281-b951-d872f2087c98