| 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 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/common/ipc_test_sink.h" | 21 #include "chrome/common/ipc_test_sink.h" |
| 22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 23 #include "chrome/common/render_messages.h" | 23 #include "chrome/common/render_messages.h" |
| 24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 #include "webkit/glue/form_data.h" | 26 #include "webkit/glue/form_data.h" |
| 27 #include "webkit/glue/form_field.h" | 27 #include "webkit/glue/form_field.h" |
| 28 | 28 |
| 29 using webkit_glue::FormData; | 29 using webkit_glue::FormData; |
| 30 | 30 |
| 31 typedef Tuple4<int, | 31 typedef Tuple5<int, |
| 32 std::vector<string16>, |
| 32 std::vector<string16>, | 33 std::vector<string16>, |
| 33 std::vector<string16>, | 34 std::vector<string16>, |
| 34 std::vector<int> > AutoFillParam; | 35 std::vector<int> > AutoFillParam; |
| 35 | 36 |
| 36 class TestPersonalDataManager : public PersonalDataManager { | 37 class TestPersonalDataManager : public PersonalDataManager { |
| 37 public: | 38 public: |
| 38 TestPersonalDataManager() { | 39 TestPersonalDataManager() { |
| 39 CreateTestAutoFillProfiles(&web_profiles_); | 40 CreateTestAutoFillProfiles(&web_profiles_); |
| 40 CreateTestCreditCards(&credit_cards_); | 41 CreateTestCreditCards(&credit_cards_); |
| 41 } | 42 } |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 #else | 1205 #else |
| 1205 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1206 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
| 1206 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1207 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
| 1207 profile()->GetPrefs()->SetBoolean( | 1208 profile()->GetPrefs()->SetBoolean( |
| 1208 prefs::kAutoFillAuxiliaryProfilesEnabled, true); | 1209 prefs::kAutoFillAuxiliaryProfilesEnabled, true); |
| 1209 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); | 1210 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); |
| 1210 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1211 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
| 1211 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1212 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
| 1212 #endif | 1213 #endif |
| 1213 } | 1214 } |
| OLD | NEW |