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/ref_counted.h" | 5 #include "base/ref_counted.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #import "chrome/browser/autofill/autofill_address_model_mac.h" | 8 #import "chrome/browser/autofill/autofill_address_model_mac.h" |
9 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" | 9 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" |
10 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" | 10 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" |
11 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" | 11 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" |
12 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" | 12 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" |
13 #include "chrome/browser/autofill/autofill_profile.h" | 13 #include "chrome/browser/autofill/autofill_profile.h" |
14 #include "chrome/browser/autofill/personal_data_manager.h" | 14 #include "chrome/browser/autofill/personal_data_manager.h" |
15 #include "chrome/browser/cocoa/browser_test_helper.h" | 15 #include "chrome/browser/cocoa/browser_test_helper.h" |
16 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 16 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
17 #include "chrome/browser/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "chrome/test/testing_pref_service.h" | 20 #include "chrome/test/testing_pref_service.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Simulated delay (in milliseconds) for web data loading. | 25 // Simulated delay (in milliseconds) for web data loading. |
26 const float kWebDataLoadDelayMilliseconds = 10.0; | 26 const float kWebDataLoadDelayMilliseconds = 10.0; |
27 | 27 |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 | 826 |
827 // Observer should have been notified. | 827 // Observer should have been notified. |
828 ASSERT_TRUE(observer_.hit_); | 828 ASSERT_TRUE(observer_.hit_); |
829 | 829 |
830 // Auxiliary profiles setting should have been saved. | 830 // Auxiliary profiles setting should have been saved. |
831 ASSERT_TRUE(helper_.profile()->GetPrefs()->GetBoolean( | 831 ASSERT_TRUE(helper_.profile()->GetPrefs()->GetBoolean( |
832 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 832 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
833 } | 833 } |
834 | 834 |
835 } // namespace | 835 } // namespace |
OLD | NEW |