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

Unified Diff: components/password_manager/sync/browser/password_sync_util_unittest.cc

Issue 2233833002: Accept empty username as sync username in IsSyncAccountCredential (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/password_manager/sync/browser/password_sync_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/sync/browser/password_sync_util_unittest.cc
diff --git a/components/password_manager/sync/browser/password_sync_util_unittest.cc b/components/password_manager/sync/browser/password_sync_util_unittest.cc
index d1bfc448677c59ff98d5f943acd83dec181d026b..5c21a83ebdfdcc41943a1543356995fe20392429 100644
--- a/components/password_manager/sync/browser/password_sync_util_unittest.cc
+++ b/components/password_manager/sync/browser/password_sync_util_unittest.cc
@@ -66,6 +66,8 @@ TEST_F(PasswordSyncUtilTest, IsSyncAccountCredential) {
false},
{SimpleNonGaiaForm("sync_user@example.org"), "sync_user@example.org",
false},
+ {SimpleGaiaForm(""), "sync_user@example.org", true},
+ {SimpleNonGaiaForm(""), "sync_user@example.org", false},
};
for (size_t i = 0; i < arraysize(kTestCases); ++i) {
« no previous file with comments | « components/password_manager/sync/browser/password_sync_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698