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

Side by Side Diff: components/password_manager/core/browser/login_database_unittest.cc

Issue 2065373002: Gender-neutralize a few more comments / strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: that was weird Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/password_manager/core/browser/login_database.h" 5 #include "components/password_manager/core/browser/login_database.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // The user's request for the HTTPS site is intercepted 285 // The user's request for the HTTPS site is intercepted
286 // by an attacker who presents an invalid SSL cert. 286 // by an attacker who presents an invalid SSL cert.
287 PasswordForm form5(form4); 287 PasswordForm form5(form4);
288 form5.ssl_valid = 0; 288 form5.ssl_valid = 0;
289 289
290 // It will match in this case. 290 // It will match in this case.
291 EXPECT_TRUE(db().GetLogins(form5, &result)); 291 EXPECT_TRUE(db().GetLogins(form5, &result));
292 EXPECT_EQ(1U, result.size()); 292 EXPECT_EQ(1U, result.size());
293 result.clear(); 293 result.clear();
294 294
295 // User changes his password. 295 // User changes their password.
296 PasswordForm form6(form5); 296 PasswordForm form6(form5);
297 form6.password_value = ASCIIToUTF16("test6"); 297 form6.password_value = ASCIIToUTF16("test6");
298 form6.preferred = true; 298 form6.preferred = true;
299 299
300 // We update, and check to make sure it matches the 300 // We update, and check to make sure it matches the
301 // old form, and there is only one record. 301 // old form, and there is only one record.
302 EXPECT_EQ(UpdateChangeForForm(form6), db().UpdateLogin(form6)); 302 EXPECT_EQ(UpdateChangeForForm(form6), db().UpdateLogin(form6));
303 // matches 303 // matches
304 EXPECT_TRUE(db().GetLogins(form5, &result)); 304 EXPECT_TRUE(db().GetLogins(form5, &result));
305 EXPECT_EQ(1U, result.size()); 305 EXPECT_EQ(1U, result.size());
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 LoginDatabaseMigrationTest, 1676 LoginDatabaseMigrationTest,
1677 testing::Range(1, kCurrentVersionNumber + 1)); 1677 testing::Range(1, kCurrentVersionNumber + 1));
1678 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent, 1678 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent,
1679 LoginDatabaseMigrationTestV9, 1679 LoginDatabaseMigrationTestV9,
1680 testing::Values(9)); 1680 testing::Values(9));
1681 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent, 1681 INSTANTIATE_TEST_CASE_P(MigrationToVCurrent,
1682 LoginDatabaseMigrationTestBroken, 1682 LoginDatabaseMigrationTestBroken,
1683 testing::Range(1, 4)); 1683 testing::Range(1, 4));
1684 1684
1685 } // namespace password_manager 1685 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698