| 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 "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/scoped_vector.h" | 10 #include "base/scoped_vector.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 14 #include "base/tuple.h" | 14 #include "base/tuple.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/autofill/autofill_common_test.h" | 16 #include "chrome/browser/autofill/autofill_common_test.h" |
| 17 #include "chrome/browser/autofill/autofill_manager.h" | 17 #include "chrome/browser/autofill/autofill_manager.h" |
| 18 #include "chrome/browser/autofill/autofill_profile.h" | 18 #include "chrome/browser/autofill/autofill_profile.h" |
| 19 #include "chrome/browser/autofill/credit_card.h" | 19 #include "chrome/browser/autofill/credit_card.h" |
| 20 #include "chrome/browser/autofill/personal_data_manager.h" | 20 #include "chrome/browser/autofill/personal_data_manager.h" |
| 21 #include "chrome/browser/prefs/pref_service.h" | 21 #include "chrome/browser/prefs/pref_service.h" |
| 22 #include "chrome/browser/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 23 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 23 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 24 #include "chrome/browser/tab_contents/test_tab_contents.h" | 24 #include "chrome/browser/tab_contents/test_tab_contents.h" |
| 25 #include "chrome/common/ipc_test_sink.h" | 25 #include "chrome/common/ipc_test_sink.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 #include "chrome/common/render_messages.h" | 27 #include "chrome/common/render_messages.h" |
| 28 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
| 29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 31 #include "webkit/glue/form_data.h" | 31 #include "webkit/glue/form_data.h" |
| 32 #include "webkit/glue/form_field.h" | 32 #include "webkit/glue/form_field.h" |
| (...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1522 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
| 1523 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1523 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
| 1524 profile()->GetPrefs()->SetBoolean( | 1524 profile()->GetPrefs()->SetBoolean( |
| 1525 prefs::kAutoFillAuxiliaryProfilesEnabled, true); | 1525 prefs::kAutoFillAuxiliaryProfilesEnabled, true); |
| 1526 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); | 1526 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); |
| 1527 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1527 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
| 1528 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1528 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
| 1529 #endif | 1529 #endif |
| 1530 } | 1530 } |
| 1531 | 1531 |
| OLD | NEW |