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

Unified Diff: sync/test/engine/mock_model_type_processor.cc

Issue 1933803002: [Sync] USS: Ignore encryption changes during conflict resolution 2/2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 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 | « sync/engine/worker_entity_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_model_type_processor.cc
diff --git a/sync/test/engine/mock_model_type_processor.cc b/sync/test/engine/mock_model_type_processor.cc
index c4ecb3d39784cb7243949a994bfb7016b25f42d7..e6d27015993623eb7f04a8e07f94662e38d33a9e 100644
--- a/sync/test/engine/mock_model_type_processor.cc
+++ b/sync/test/engine/mock_model_type_processor.cc
@@ -7,7 +7,9 @@
#include <stddef.h>
#include <stdint.h>
+#include "base/base64.h"
#include "base/bind.h"
+#include "base/sha1.h"
#include "sync/engine/commit_queue.h"
namespace syncer_v2 {
@@ -90,6 +92,8 @@ CommitRequestData MockModelTypeProcessor::CommitRequest(
request_data.entity = data.PassToPtr();
request_data.sequence_number = GetNextSequenceNumber(tag_hash);
request_data.base_version = base_version;
+ base::Base64Encode(base::SHA1HashString(specifics.SerializeAsString()),
+ &request_data.specifics_hash);
return request_data;
}
« no previous file with comments | « sync/engine/worker_entity_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698