Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: components/autofill/core/browser/autofill_manager_unittest.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/format_macros.h" 11 #include "base/format_macros.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/run_loop.h" 16 #include "base/run_loop.h"
18 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
19 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
21 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
22 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
23 #include "base/test/histogram_tester.h" 22 #include "base/test/histogram_tester.h"
24 #include "base/thread_task_runner_handle.h" 23 #include "base/thread_task_runner_handle.h"
25 #include "base/time/time.h" 24 #include "base/time/time.h"
26 #include "build/build_config.h" 25 #include "build/build_config.h"
27 #include "components/autofill/core/browser/autocomplete_history_manager.h" 26 #include "components/autofill/core/browser/autocomplete_history_manager.h"
28 #include "components/autofill/core/browser/autofill_download_manager.h" 27 #include "components/autofill/core/browser/autofill_download_manager.h"
29 #include "components/autofill/core/browser/autofill_manager.h" 28 #include "components/autofill/core/browser/autofill_manager.h"
30 #include "components/autofill/core/browser/autofill_profile.h" 29 #include "components/autofill/core/browser/autofill_profile.h"
31 #include "components/autofill/core/browser/autofill_test_utils.h" 30 #include "components/autofill/core/browser/autofill_test_utils.h"
32 #include "components/autofill/core/browser/credit_card.h" 31 #include "components/autofill/core/browser/credit_card.h"
33 #include "components/autofill/core/browser/personal_data_manager.h" 32 #include "components/autofill/core/browser/personal_data_manager.h"
34 #include "components/autofill/core/browser/popup_item_ids.h" 33 #include "components/autofill/core/browser/popup_item_ids.h"
35 #include "components/autofill/core/browser/test_autofill_client.h" 34 #include "components/autofill/core/browser/test_autofill_client.h"
36 #include "components/autofill/core/browser/test_autofill_driver.h" 35 #include "components/autofill/core/browser/test_autofill_driver.h"
37 #include "components/autofill/core/browser/test_autofill_external_delegate.h" 36 #include "components/autofill/core/browser/test_autofill_external_delegate.h"
38 #include "components/autofill/core/browser/validation.h" 37 #include "components/autofill/core/browser/validation.h"
39 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 38 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
40 #include "components/autofill/core/common/autofill_pref_names.h" 39 #include "components/autofill/core/common/autofill_pref_names.h"
41 #include "components/autofill/core/common/autofill_switches.h" 40 #include "components/autofill/core/common/autofill_switches.h"
42 #include "components/autofill/core/common/autofill_util.h" 41 #include "components/autofill/core/common/autofill_util.h"
43 #include "components/autofill/core/common/form_data.h" 42 #include "components/autofill/core/common/form_data.h"
44 #include "components/autofill/core/common/form_field_data.h" 43 #include "components/autofill/core/common/form_field_data.h"
44 #include "components/prefs/pref_service.h"
45 #include "grit/components_strings.h" 45 #include "grit/components_strings.h"
46 #include "net/url_request/url_request_test_util.h" 46 #include "net/url_request/url_request_test_util.h"
47 #include "testing/gmock/include/gmock/gmock.h" 47 #include "testing/gmock/include/gmock/gmock.h"
48 #include "testing/gtest/include/gtest/gtest.h" 48 #include "testing/gtest/include/gtest/gtest.h"
49 #include "ui/base/l10n/l10n_util.h" 49 #include "ui/base/l10n/l10n_util.h"
50 #include "ui/gfx/geometry/rect.h" 50 #include "ui/gfx/geometry/rect.h"
51 #include "url/gurl.h" 51 #include "url/gurl.h"
52 52
53 using base::ASCIIToUTF16; 53 using base::ASCIIToUTF16;
54 using base::UTF8ToUTF16; 54 using base::UTF8ToUTF16;
(...skipping 4266 matching lines...) Expand 10 before | Expand all | Expand 10 after
4321 FormsSeen(mixed_forms); 4321 FormsSeen(mixed_forms);
4322 4322
4323 // Suggestions should always be displayed. 4323 // Suggestions should always be displayed.
4324 for (const FormFieldData& field : mixed_form.fields) { 4324 for (const FormFieldData& field : mixed_form.fields) {
4325 GetAutofillSuggestions(mixed_form, field); 4325 GetAutofillSuggestions(mixed_form, field);
4326 EXPECT_TRUE(external_delegate_->on_suggestions_returned_seen()); 4326 EXPECT_TRUE(external_delegate_->on_suggestions_returned_seen());
4327 } 4327 }
4328 } 4328 }
4329 4329
4330 } // namespace autofill 4330 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698