| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 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/scoped_vector.h" | 9 #include "base/scoped_vector.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 EXPECT_TRUE(GetAutoFillSuggestionsMessage(&page_id, &values, &labels)); | 718 EXPECT_TRUE(GetAutoFillSuggestionsMessage(&page_id, &values, &labels)); |
| 719 EXPECT_EQ(kPageID, page_id); | 719 EXPECT_EQ(kPageID, page_id); |
| 720 ASSERT_EQ(2U, values.size()); | 720 ASSERT_EQ(2U, values.size()); |
| 721 EXPECT_EQ(ASCIIToUTF16("Elvis"), values[0]); | 721 EXPECT_EQ(ASCIIToUTF16("Elvis"), values[0]); |
| 722 EXPECT_EQ(ASCIIToUTF16("Charles"), values[1]); | 722 EXPECT_EQ(ASCIIToUTF16("Charles"), values[1]); |
| 723 ASSERT_EQ(2U, labels.size()); | 723 ASSERT_EQ(2U, labels.size()); |
| 724 EXPECT_EQ(string16(), labels[0]); | 724 EXPECT_EQ(string16(), labels[0]); |
| 725 EXPECT_EQ(string16(), labels[1]); | 725 EXPECT_EQ(string16(), labels[1]); |
| 726 } | 726 } |
| 727 | 727 |
| 728 TEST_F(AutoFillManagerTest, GetBillingSuggestionsAddress1) { | 728 TEST_F(AutoFillManagerTest, SKIP_BRANDED(GetBillingSuggestionsAddress1)) { |
| 729 FormData form; | 729 FormData form; |
| 730 CreateTestFormDataBilling(&form); | 730 CreateTestFormDataBilling(&form); |
| 731 | 731 |
| 732 // Set up our FormStructures. | 732 // Set up our FormStructures. |
| 733 std::vector<FormData> forms; | 733 std::vector<FormData> forms; |
| 734 forms.push_back(form); | 734 forms.push_back(form); |
| 735 autofill_manager_->FormsSeen(forms); | 735 autofill_manager_->FormsSeen(forms); |
| 736 | 736 |
| 737 // The page ID sent to the AutoFillManager from the RenderView, used to send | 737 // The page ID sent to the AutoFillManager from the RenderView, used to send |
| 738 // an IPC message back to the renderer. | 738 // an IPC message back to the renderer. |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1244 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
| 1245 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1245 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
| 1246 profile()->GetPrefs()->SetBoolean( | 1246 profile()->GetPrefs()->SetBoolean( |
| 1247 prefs::kAutoFillAuxiliaryProfilesEnabled, true); | 1247 prefs::kAutoFillAuxiliaryProfilesEnabled, true); |
| 1248 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); | 1248 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); |
| 1249 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1249 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
| 1250 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1250 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
| 1251 #endif | 1251 #endif |
| 1252 } | 1252 } |
| 1253 | 1253 |
| OLD | NEW |