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" |
11 #include "base/tuple.h" | 11 #include "base/tuple.h" |
| 12 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/autofill/autofill_common_unittest.h" | 13 #include "chrome/browser/autofill/autofill_common_unittest.h" |
13 #include "chrome/browser/autofill/autofill_manager.h" | 14 #include "chrome/browser/autofill/autofill_manager.h" |
14 #include "chrome/browser/autofill/autofill_profile.h" | 15 #include "chrome/browser/autofill/autofill_profile.h" |
15 #include "chrome/browser/autofill/credit_card.h" | 16 #include "chrome/browser/autofill/credit_card.h" |
16 #include "chrome/browser/autofill/personal_data_manager.h" | 17 #include "chrome/browser/autofill/personal_data_manager.h" |
17 #include "chrome/browser/pref_service.h" | 18 #include "chrome/browser/pref_service.h" |
18 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
19 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 20 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
20 #include "chrome/browser/tab_contents/test_tab_contents.h" | 21 #include "chrome/browser/tab_contents/test_tab_contents.h" |
21 #include "chrome/common/ipc_test_sink.h" | 22 #include "chrome/common/ipc_test_sink.h" |
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1245 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
1245 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1246 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
1246 profile()->GetPrefs()->SetBoolean( | 1247 profile()->GetPrefs()->SetBoolean( |
1247 prefs::kAutoFillAuxiliaryProfilesEnabled, true); | 1248 prefs::kAutoFillAuxiliaryProfilesEnabled, true); |
1248 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); | 1249 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); |
1249 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1250 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
1250 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1251 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
1251 #endif | 1252 #endif |
1252 } | 1253 } |
1253 | 1254 |
OLD | NEW |