| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/scoped_ptr.h" | 6 #include "base/scoped_ptr.h" |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/autofill/autofill_common_unittest.h" | 10 #include "chrome/browser/autofill/autofill_common_unittest.h" |
| 10 #include "chrome/browser/autofill/autofill_profile.h" | 11 #include "chrome/browser/autofill/autofill_profile.h" |
| 11 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 // Tests different possibilities for summary string generation. | 17 // Tests different possibilities for summary string generation. |
| 17 // Based on existence of first name, last name, and address line 1. | 18 // Based on existence of first name, last name, and address line 1. |
| 18 TEST(AutoFillProfileTest, PreviewSummaryString) { | 19 TEST(AutoFillProfileTest, PreviewSummaryString) { |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 AutoFillProfile expected_a; | 361 AutoFillProfile expected_a; |
| 361 autofill_unittest::SetProfileInfo(&expected_a, "label1", "Jimmy", NULL, | 362 autofill_unittest::SetProfileInfo(&expected_a, "label1", "Jimmy", NULL, |
| 362 "Madison", "constitutionalist@gmail.com", "United States Government", | 363 "Madison", "constitutionalist@gmail.com", "United States Government", |
| 363 "Monticello", NULL, "Charlottesville", "Virginia", "22902", NULL, | 364 "Monticello", NULL, "Charlottesville", "Virginia", "22902", NULL, |
| 364 "12134759123", "19384284720"); | 365 "12134759123", "19384284720"); |
| 365 EXPECT_EQ(expected_a, *a); | 366 EXPECT_EQ(expected_a, *a); |
| 366 EXPECT_EQ(expected_b, *b); | 367 EXPECT_EQ(expected_b, *b); |
| 367 } | 368 } |
| 368 | 369 |
| 369 } // namespace | 370 } // namespace |
| OLD | NEW |