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/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.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 "chrome/browser/autofill/form_structure.h" | 12 #include "chrome/browser/autofill/form_structure.h" |
12 #include "chrome/browser/autofill/personal_data_manager.h" | 13 #include "chrome/browser/autofill/personal_data_manager.h" |
13 #include "chrome/browser/chrome_thread.h" | 14 #include "chrome/browser/chrome_thread.h" |
14 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/pref_service.h" |
15 #include "chrome/browser/password_manager/encryptor.h" | 16 #include "chrome/browser/password_manager/encryptor.h" |
16 #include "chrome/common/notification_details.h" | 17 #include "chrome/common/notification_details.h" |
17 #include "chrome/common/notification_observer_mock.h" | 18 #include "chrome/common/notification_observer_mock.h" |
18 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 "Washington", "theprez@gmail.com", NULL, "190 High Street", NULL, | 787 "Washington", "theprez@gmail.com", NULL, "190 High Street", NULL, |
787 "Philadelphia", "Pennsylvania", "19106", NULL, NULL, NULL); | 788 "Philadelphia", "Pennsylvania", "19106", NULL, NULL, NULL); |
788 EXPECT_EQ(*expected, *results3[0]); | 789 EXPECT_EQ(*expected, *results3[0]); |
789 | 790 |
790 expected.reset(new AutoFillProfile(ASCIIToUTF16("Unlabeled2"), 2)); | 791 expected.reset(new AutoFillProfile(ASCIIToUTF16("Unlabeled2"), 2)); |
791 autofill_unittest::SetProfileInfo(expected.get(), "Unlabeled2", "John", NULL, | 792 autofill_unittest::SetProfileInfo(expected.get(), "Unlabeled2", "John", NULL, |
792 "Adams", "second@gmail.com", NULL, NULL, NULL, NULL, NULL, NULL, NULL, | 793 "Adams", "second@gmail.com", NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
793 NULL, NULL); | 794 NULL, NULL); |
794 EXPECT_EQ(*expected, *results3[1]); | 795 EXPECT_EQ(*expected, *results3[1]); |
795 } | 796 } |
OLD | NEW |