| Index: chrome/browser/autofill/credit_card_unittest.cc
|
| diff --git a/chrome/browser/autofill/credit_card_unittest.cc b/chrome/browser/autofill/credit_card_unittest.cc
|
| index 507379baebce8db6a95b928445ed8f6cffdb172c..89e73d7d0fa27f891b7f70ac2853609c9333f8b8 100644
|
| --- a/chrome/browser/autofill/credit_card_unittest.cc
|
| +++ b/chrome/browser/autofill/credit_card_unittest.cc
|
| @@ -67,5 +67,19 @@ TEST(CreditCardTest, PreviewSummaryAndObfuscatedNumberStrings) {
|
| EXPECT_EQ(string16(ASCIIToUTF16("************9012")), obfuscated4);
|
| }
|
|
|
| +TEST(CreditCardTest, AssignmentOperator){
|
| + CreditCard a, b;
|
| +
|
| + // Result of assignment should be logically equal to the original profile.
|
| + autofill_test::SetCreditCardInfo(&a, "Corporate", "John Dillinger",
|
| + "123456789012", "01", "2010");
|
| + b = a;
|
| + EXPECT_TRUE(a == b);
|
| +
|
| + // Assignment to self should not change the profile value.
|
| + a = a;
|
| + EXPECT_TRUE(a == b);
|
| +}
|
| +
|
| } // namespace
|
|
|
|
|