Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: components/sync/engine_impl/model_type_worker_unittest.cc

Issue 2813453004: [sync] Fix decryption failure caused by missing user_key (Closed)
Patch Set: Restore derivation check, add tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/base/nigori_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/model_type_worker_unittest.cc
diff --git a/components/sync/engine_impl/model_type_worker_unittest.cc b/components/sync/engine_impl/model_type_worker_unittest.cc
index 486afe1e84f4dca1c8eb40bd12d2391452595562..cc4fd1bd2ff812e13ede75e9229d9a52bf6ddd15 100644
--- a/components/sync/engine_impl/model_type_worker_unittest.cc
+++ b/components/sync/engine_impl/model_type_worker_unittest.cc
@@ -216,7 +216,8 @@ class ModelTypeWorkerTest : public ::testing::Test {
sync_pb::NigoriKey* key = bag.add_key();
key->set_name(GetNigoriName(nigori));
- nigori.ExportKeys(key->mutable_encryption_key(), key->mutable_mac_key());
+ nigori.ExportKeys(key->mutable_user_key(), key->mutable_encryption_key(),
+ key->mutable_mac_key());
}
// Re-create the last nigori from that loop.
« no previous file with comments | « components/sync/base/nigori_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698