Index: chrome/browser/autofill/autofill_profile_unittest.cc |
diff --git a/chrome/browser/autofill/autofill_profile_unittest.cc b/chrome/browser/autofill/autofill_profile_unittest.cc |
index 3c500a3927b24a38f2703d1cd596556c46359082..012518dec93bf8f69e64aaf0f3a71ec0aade0385 100644 |
--- a/chrome/browser/autofill/autofill_profile_unittest.cc |
+++ b/chrome/browser/autofill/autofill_profile_unittest.cc |
@@ -495,6 +495,18 @@ TEST(AutoFillProfileTest, MergeWith) { |
EXPECT_EQ(0, expected_b.Compare(*b)); |
} |
+TEST(AutoFillProfileTest, Clone) { |
+ AutoFillProfile a; |
+ |
+ // Clone should be logically equal to the original. |
+ autofill_test::SetProfileInfo(&a, "Billing", "Marion", "Mitchell", "Morrison", |
+ "marion@me.xyz", "Fox", "123 Zoo St.", "unit 5", |
+ "Hollywood", "CA", "91601", "US", "12345678910", |
+ "01987654321"); |
+ scoped_ptr<AutoFillProfile> b(static_cast<AutoFillProfile*>(a.Clone())); |
+ EXPECT_TRUE(a == *b); |
+} |
+ |
TEST(AutoFillProfileTest, Compare) { |
AutoFillProfile a, b; |