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

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

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/tuple.h" 16 #include "base/tuple.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/autofill/autocomplete_history_manager.h"
19 #include "chrome/browser/autofill/autofill_common_test.h"
20 #include "chrome/browser/autofill/autofill_manager.h"
21 #include "chrome/browser/autofill/autofill_metrics.h"
22 #include "chrome/browser/autofill/autofill_profile.h"
23 #include "chrome/browser/autofill/credit_card.h"
24 #include "chrome/browser/autofill/personal_data_manager.h"
25 #include "chrome/browser/autofill/personal_data_manager_factory.h" 18 #include "chrome/browser/autofill/personal_data_manager_factory.h"
26 #include "chrome/browser/autofill/test_autofill_external_delegate.h"
27 #include "chrome/browser/password_manager/password_manager.h" 19 #include "chrome/browser/password_manager/password_manager.h"
28 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" 20 #include "chrome/browser/password_manager/password_manager_delegate_impl.h"
29 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/browser/sync/profile_sync_service.h" 22 #include "chrome/browser/sync/profile_sync_service.h"
31 #include "chrome/browser/sync/profile_sync_service_factory.h" 23 #include "chrome/browser/sync/profile_sync_service_factory.h"
32 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" 24 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
33 #include "chrome/browser/ui/browser.h" 25 #include "chrome/browser/ui/browser.h"
34 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
35 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 27 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
36 #include "chrome/test/base/testing_profile.h" 28 #include "chrome/test/base/testing_profile.h"
29 #include "components/autofill/browser/autocomplete_history_manager.h"
30 #include "components/autofill/browser/autofill_common_test.h"
31 #include "components/autofill/browser/autofill_manager.h"
32 #include "components/autofill/browser/autofill_metrics.h"
33 #include "components/autofill/browser/autofill_profile.h"
34 #include "components/autofill/browser/credit_card.h"
35 #include "components/autofill/browser/personal_data_manager.h"
36 #include "components/autofill/browser/test_autofill_external_delegate.h"
37 #include "components/autofill/common/autofill_messages.h" 37 #include "components/autofill/common/autofill_messages.h"
38 #include "components/autofill/common/form_data.h" 38 #include "components/autofill/common/form_data.h"
39 #include "components/autofill/common/form_field_data.h" 39 #include "components/autofill/common/form_field_data.h"
40 #include "components/user_prefs/user_prefs.h" 40 #include "components/user_prefs/user_prefs.h"
41 #include "content/public/browser/web_contents.h" 41 #include "content/public/browser/web_contents.h"
42 #include "content/public/common/ssl_status.h" 42 #include "content/public/common/ssl_status.h"
43 #include "content/public/test/mock_render_process_host.h" 43 #include "content/public/test/mock_render_process_host.h"
44 #include "content/public/test/test_browser_thread.h" 44 #include "content/public/test/test_browser_thread.h"
45 #include "googleurl/src/gurl.h" 45 #include "googleurl/src/gurl.h"
46 #include "grit/generated_resources.h" 46 #include "grit/generated_resources.h"
(...skipping 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3219 3219
3220 FormData form; 3220 FormData form;
3221 CreateTestAddressFormData(&form); 3221 CreateTestAddressFormData(&form);
3222 std::vector<FormData> forms(1, form); 3222 std::vector<FormData> forms(1, form);
3223 FormsSeen(forms); 3223 FormsSeen(forms);
3224 const FormFieldData& field = form.fields[0]; 3224 const FormFieldData& field = form.fields[0];
3225 GetAutofillSuggestions(form, field); // should call the delegate's OnQuery() 3225 GetAutofillSuggestions(form, field); // should call the delegate's OnQuery()
3226 3226
3227 autofill_manager_->SetExternalDelegate(NULL); 3227 autofill_manager_->SetExternalDelegate(NULL);
3228 } 3228 }
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_manager_delegate.h ('k') | components/autofill/browser/autofill_merge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698