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

Unified Diff: chrome/browser/autofill/autofill_profile_unittest.cc

Issue 8143007: Move a bunch of non-shared methods out of the FormGroup class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
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 2cfe340be8d220ee3cd774f7d2dd9f9438a1d247..81b73953a293205ce8b5df7b8fe7f2c85474d4cc 100644
--- a/chrome/browser/autofill/autofill_profile_unittest.cc
+++ b/chrome/browser/autofill/autofill_profile_unittest.cc
@@ -532,68 +532,6 @@ TEST_F(AutofillProfileTest, IsSubsetOf) {
EXPECT_FALSE(a->IsSubsetOf(*b));
}
-TEST_F(AutofillProfileTest, IntersectionOfTypesHasEqualValues) {
- scoped_ptr<AutofillProfile> a, b;
-
- // Intersection of types contains the fields NAME_FIRST, NAME_LAST,
- // EMAIL_ADDRESS. The values of these field types are equal between the two
- // profiles.
- a.reset(new AutofillProfile);
- b.reset(new AutofillProfile);
- autofill_test::SetProfileInfo(a.get(), "Thomas", NULL, "Jefferson",
- "declaration_guy@gmail.com", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- "12134759123");
- autofill_test::SetProfileInfo(b.get(), "Thomas", NULL, "Jefferson",
- "declaration_guy@gmail.com", "United States Government", "Monticello",
- NULL, "Charlottesville", "Virginia", "22902", NULL, NULL);
- EXPECT_TRUE(a->IntersectionOfTypesHasEqualValues(*b));
-
- // Intersection of types contains the fields NAME_FIRST, NAME_LAST,
- // EMAIL_ADDRESS. The value of EMAIL_ADDRESS differs between the two profiles.
- a.reset(new AutofillProfile);
- b.reset(new AutofillProfile);
- autofill_test::SetProfileInfo(a.get(), "Thomas", NULL, "Jefferson",
- "poser@yahoo.com", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- "12134759123");
- autofill_test::SetProfileInfo(b.get(), "Thomas", NULL, "Jefferson",\
- "declaration_guy@gmail.com", "United States Government", "Monticello",
- NULL, "Charlottesville", "Virginia", "22902", NULL, NULL);
- EXPECT_FALSE(a->IntersectionOfTypesHasEqualValues(*b));
-
- // Intersection of types is empty.
- a.reset(new AutofillProfile);
- b.reset(new AutofillProfile);
- autofill_test::SetProfileInfo(a.get(), "Thomas", NULL, "Jefferson",
- "poser@yahoo.com", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- "12134759123");
- autofill_test::SetProfileInfo(b.get(), NULL, NULL, NULL, NULL,
- "United States Government", "Monticello", NULL, "Charlottesville",
- "Virginia", "22902", NULL, NULL);
- EXPECT_FALSE(a->IntersectionOfTypesHasEqualValues(*b));
-}
-
-TEST_F(AutofillProfileTest, MergeWith) {
- scoped_ptr<AutofillProfile> a, b;
-
- // Merge |b| into |a|.
- a.reset(new AutofillProfile);
- b.reset(new AutofillProfile);
- autofill_test::SetProfileInfo(a.get(), "Jimmy", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, "12134759123");
- autofill_test::SetProfileInfo(b.get(), "James", NULL, "Madison",
- "constitutionalist@gmail.com", "United States Government", "Monticello",
- NULL, "Charlottesville", "Virginia", "22902", NULL, NULL);
- AutofillProfile expected_b(*b);
- a->MergeWith(*b);
-
- AutofillProfile expected_a;
- autofill_test::SetProfileInfo(&expected_a, "Jimmy", NULL, "Madison",
- "constitutionalist@gmail.com", "United States Government", "Monticello",
- NULL, "Charlottesville", "Virginia", "22902", NULL, "12134759123");
- EXPECT_EQ(0, expected_a.Compare(*a));
- EXPECT_EQ(0, expected_b.Compare(*b));
-}
-
TEST_F(AutofillProfileTest, AssignmentOperator){
AutofillProfile a, b;

Powered by Google App Engine
This is Rietveld 408576698