| 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/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "components/autofill/browser/test_autofill_manager_delegate.h" | 39 #include "components/autofill/browser/test_autofill_manager_delegate.h" |
| 40 #include "components/autofill/common/autofill_messages.h" | 40 #include "components/autofill/common/autofill_messages.h" |
| 41 #include "components/autofill/common/form_data.h" | 41 #include "components/autofill/common/form_data.h" |
| 42 #include "components/autofill/common/form_field_data.h" | 42 #include "components/autofill/common/form_field_data.h" |
| 43 #include "components/autofill/common/forms_seen_state.h" | 43 #include "components/autofill/common/forms_seen_state.h" |
| 44 #include "components/user_prefs/user_prefs.h" | 44 #include "components/user_prefs/user_prefs.h" |
| 45 #include "content/public/browser/web_contents.h" | 45 #include "content/public/browser/web_contents.h" |
| 46 #include "content/public/test/mock_render_process_host.h" | 46 #include "content/public/test/mock_render_process_host.h" |
| 47 #include "content/public/test/test_utils.h" | 47 #include "content/public/test/test_utils.h" |
| 48 #include "googleurl/src/gurl.h" | 48 #include "googleurl/src/gurl.h" |
| 49 #include "grit/component_resources.h" | 49 #include "grit/component_strings.h" |
| 50 #include "ipc/ipc_test_sink.h" | 50 #include "ipc/ipc_test_sink.h" |
| 51 #include "testing/gmock/include/gmock/gmock.h" | 51 #include "testing/gmock/include/gmock/gmock.h" |
| 52 #include "testing/gtest/include/gtest/gtest.h" | 52 #include "testing/gtest/include/gtest/gtest.h" |
| 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" |
| 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
| 55 #include "ui/base/l10n/l10n_util.h" | 55 #include "ui/base/l10n/l10n_util.h" |
| 56 #include "ui/gfx/rect.h" | 56 #include "ui/gfx/rect.h" |
| 57 | 57 |
| 58 using content::WebContents; | 58 using content::WebContents; |
| 59 using testing::_; | 59 using testing::_; |
| (...skipping 3224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3284 CreateTestAddressFormData(&form); | 3284 CreateTestAddressFormData(&form); |
| 3285 std::vector<FormData> forms(1, form); | 3285 std::vector<FormData> forms(1, form); |
| 3286 FormsSeen(forms); | 3286 FormsSeen(forms); |
| 3287 const FormFieldData& field = form.fields[0]; | 3287 const FormFieldData& field = form.fields[0]; |
| 3288 GetAutofillSuggestions(form, field); // should call the delegate's OnQuery() | 3288 GetAutofillSuggestions(form, field); // should call the delegate's OnQuery() |
| 3289 | 3289 |
| 3290 autofill_manager_->SetExternalDelegate(NULL); | 3290 autofill_manager_->SetExternalDelegate(NULL); |
| 3291 } | 3291 } |
| 3292 | 3292 |
| 3293 } // namespace autofill | 3293 } // namespace autofill |
| OLD | NEW |