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

Unified Diff: components/sync/protocol/proto_value_conversions_unittest.cc

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Fix presumit; fix Windows; git cl format Created 4 years, 1 month 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/protocol/proto_value_conversions.cc ('k') | components/sync/protocol/proto_visitors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/protocol/proto_value_conversions_unittest.cc
diff --git a/components/sync/protocol/proto_value_conversions_unittest.cc b/components/sync/protocol/proto_value_conversions_unittest.cc
index fd8cee020f9ff6bdd5ab67b5057638fe24db3bb1..9015e5c344053250e2705ac6aa51952b4fae47db 100644
--- a/components/sync/protocol/proto_value_conversions_unittest.cc
+++ b/components/sync/protocol/proto_value_conversions_unittest.cc
@@ -92,6 +92,13 @@ TEST_F(ProtoValueConversionsTest, NavigationRedirectToValue) {
TestSpecificsToValue(NavigationRedirectToValue);
}
+TEST_F(ProtoValueConversionsTest, PasswordSpecifics) {
+ sync_pb::PasswordSpecifics specifics;
+ specifics.mutable_client_only_encrypted_data();
+ auto value = PasswordSpecificsToValue(specifics);
+ EXPECT_FALSE(value->Get("client_only_encrypted_data", nullptr));
+}
+
TEST_F(ProtoValueConversionsTest, PasswordSpecificsData) {
sync_pb::PasswordSpecificsData specifics;
specifics.set_password_value("secret");
« no previous file with comments | « components/sync/protocol/proto_value_conversions.cc ('k') | components/sync/protocol/proto_visitors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698