| OLD | NEW | 
|     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" | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|    24 #include "chrome/browser/autofill/personal_data_manager.h" |    24 #include "chrome/browser/autofill/personal_data_manager.h" | 
|    25 #include "chrome/browser/autofill/personal_data_manager_factory.h" |    25 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 
|    26 #include "chrome/browser/autofill/test_autofill_external_delegate.h" |    26 #include "chrome/browser/autofill/test_autofill_external_delegate.h" | 
|    27 #include "chrome/browser/password_manager/password_manager.h" |    27 #include "chrome/browser/password_manager/password_manager.h" | 
|    28 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" |    28 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" | 
|    29 #include "chrome/browser/profiles/profile.h" |    29 #include "chrome/browser/profiles/profile.h" | 
|    30 #include "chrome/browser/sync/profile_sync_service.h" |    30 #include "chrome/browser/sync/profile_sync_service.h" | 
|    31 #include "chrome/browser/sync/profile_sync_service_factory.h" |    31 #include "chrome/browser/sync/profile_sync_service_factory.h" | 
|    32 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" |    32 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" | 
|    33 #include "chrome/browser/ui/browser.h" |    33 #include "chrome/browser/ui/browser.h" | 
|    34 #include "chrome/common/autofill_messages.h" |  | 
|    35 #include "chrome/common/chrome_switches.h" |    34 #include "chrome/common/chrome_switches.h" | 
|    36 #include "chrome/common/form_data.h" |  | 
|    37 #include "chrome/common/form_field_data.h" |  | 
|    38 #include "chrome/common/pref_names.h" |    35 #include "chrome/common/pref_names.h" | 
|    39 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |    36 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 
|    40 #include "chrome/test/base/testing_profile.h" |    37 #include "chrome/test/base/testing_profile.h" | 
 |    38 #include "components/autofill/common/autofill_messages.h" | 
 |    39 #include "components/autofill/common/form_data.h" | 
 |    40 #include "components/autofill/common/form_field_data.h" | 
|    41 #include "components/user_prefs/user_prefs.h" |    41 #include "components/user_prefs/user_prefs.h" | 
|    42 #include "content/public/browser/web_contents.h" |    42 #include "content/public/browser/web_contents.h" | 
|    43 #include "content/public/common/ssl_status.h" |    43 #include "content/public/common/ssl_status.h" | 
|    44 #include "content/public/test/mock_render_process_host.h" |    44 #include "content/public/test/mock_render_process_host.h" | 
|    45 #include "content/public/test/test_browser_thread.h" |    45 #include "content/public/test/test_browser_thread.h" | 
|    46 #include "googleurl/src/gurl.h" |    46 #include "googleurl/src/gurl.h" | 
|    47 #include "grit/generated_resources.h" |    47 #include "grit/generated_resources.h" | 
|    48 #include "ipc/ipc_test_sink.h" |    48 #include "ipc/ipc_test_sink.h" | 
|    49 #include "testing/gmock/include/gmock/gmock.h" |    49 #include "testing/gmock/include/gmock/gmock.h" | 
|    50 #include "testing/gtest/include/gtest/gtest.h" |    50 #include "testing/gtest/include/gtest/gtest.h" | 
| (...skipping 3169 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3220  |  3220  | 
|  3221   FormData form; |  3221   FormData form; | 
|  3222   CreateTestAddressFormData(&form); |  3222   CreateTestAddressFormData(&form); | 
|  3223   std::vector<FormData> forms(1, form); |  3223   std::vector<FormData> forms(1, form); | 
|  3224   FormsSeen(forms); |  3224   FormsSeen(forms); | 
|  3225   const FormFieldData& field = form.fields[0]; |  3225   const FormFieldData& field = form.fields[0]; | 
|  3226   GetAutofillSuggestions(form, field);  // should call the delegate's OnQuery() |  3226   GetAutofillSuggestions(form, field);  // should call the delegate's OnQuery() | 
|  3227  |  3227  | 
|  3228   autofill_manager_->SetExternalDelegate(NULL); |  3228   autofill_manager_->SetExternalDelegate(NULL); | 
|  3229 } |  3229 } | 
| OLD | NEW |