OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/guid.h" | 13 #include "base/guid.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
18 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
19 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
20 #include "base/time/time.h" | 19 #include "base/time/time.h" |
21 #include "build/build_config.h" | 20 #include "build/build_config.h" |
22 #include "components/autofill/core/browser/autofill_experiments.h" | 21 #include "components/autofill/core/browser/autofill_experiments.h" |
23 #include "components/autofill/core/browser/autofill_profile.h" | 22 #include "components/autofill/core/browser/autofill_profile.h" |
24 #include "components/autofill/core/browser/autofill_test_utils.h" | 23 #include "components/autofill/core/browser/autofill_test_utils.h" |
25 #include "components/autofill/core/browser/field_types.h" | 24 #include "components/autofill/core/browser/field_types.h" |
26 #include "components/autofill/core/browser/form_structure.h" | 25 #include "components/autofill/core/browser/form_structure.h" |
27 #include "components/autofill/core/browser/personal_data_manager.h" | 26 #include "components/autofill/core/browser/personal_data_manager.h" |
28 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 27 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
29 #include "components/autofill/core/browser/webdata/autofill_table.h" | 28 #include "components/autofill/core/browser/webdata/autofill_table.h" |
30 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 29 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
31 #include "components/autofill/core/common/autofill_pref_names.h" | 30 #include "components/autofill/core/common/autofill_pref_names.h" |
32 #include "components/autofill/core/common/autofill_switches.h" | 31 #include "components/autofill/core/common/autofill_switches.h" |
33 #include "components/autofill/core/common/form_data.h" | 32 #include "components/autofill/core/common/form_data.h" |
| 33 #include "components/prefs/pref_service.h" |
34 #include "components/signin/core/browser/account_tracker_service.h" | 34 #include "components/signin/core/browser/account_tracker_service.h" |
35 #include "components/signin/core/browser/fake_signin_manager.h" | 35 #include "components/signin/core/browser/fake_signin_manager.h" |
36 #include "components/signin/core/browser/test_signin_client.h" | 36 #include "components/signin/core/browser/test_signin_client.h" |
37 #include "components/signin/core/common/signin_pref_names.h" | 37 #include "components/signin/core/common/signin_pref_names.h" |
38 #include "components/variations/entropy_provider.h" | 38 #include "components/variations/entropy_provider.h" |
39 #include "components/variations/variations_associated_data.h" | 39 #include "components/variations/variations_associated_data.h" |
40 #include "components/webdata/common/web_data_service_base.h" | 40 #include "components/webdata/common/web_data_service_base.h" |
41 #include "components/webdata/common/web_database_service.h" | 41 #include "components/webdata/common/web_database_service.h" |
42 #include "testing/gmock/include/gmock/gmock.h" | 42 #include "testing/gmock/include/gmock/gmock.h" |
43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 3752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3796 EXPECT_GT(base::TimeDelta::FromMilliseconds(500), | 3796 EXPECT_GT(base::TimeDelta::FromMilliseconds(500), |
3797 base::Time::Now() - saved_profiles.front()->use_date()); | 3797 base::Time::Now() - saved_profiles.front()->use_date()); |
3798 } | 3798 } |
3799 | 3799 |
3800 // Erase the profiles for the next test. | 3800 // Erase the profiles for the next test. |
3801 ResetProfiles(); | 3801 ResetProfiles(); |
3802 } | 3802 } |
3803 } | 3803 } |
3804 | 3804 |
3805 } // namespace autofill | 3805 } // namespace autofill |
OLD | NEW |