| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/prefs/pref_service.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 14 #include "components/autofill/core/browser/autocomplete_history_manager.h" | 15 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
| 15 #include "components/autofill/core/browser/autofill_external_delegate.h" | 16 #include "components/autofill/core/browser/autofill_external_delegate.h" |
| 16 #include "components/autofill/core/browser/autofill_manager.h" | 17 #include "components/autofill/core/browser/autofill_manager.h" |
| 17 #include "components/autofill/core/browser/autofill_test_utils.h" | 18 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 18 #include "components/autofill/core/browser/test_autofill_client.h" | 19 #include "components/autofill/core/browser/test_autofill_client.h" |
| 19 #include "components/autofill/core/browser/test_autofill_driver.h" | 20 #include "components/autofill/core/browser/test_autofill_driver.h" |
| 20 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 21 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 21 #include "components/autofill/core/common/form_data.h" | 22 #include "components/autofill/core/common/form_data.h" |
| 22 #include "components/prefs/pref_service.h" | |
| 23 #include "components/webdata_services/web_data_service_test_util.h" | 23 #include "components/webdata_services/web_data_service_test_util.h" |
| 24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 #include "ui/gfx/geometry/rect.h" | 26 #include "ui/gfx/geometry/rect.h" |
| 27 | 27 |
| 28 using base::ASCIIToUTF16; | 28 using base::ASCIIToUTF16; |
| 29 using testing::_; | 29 using testing::_; |
| 30 | 30 |
| 31 namespace autofill { | 31 namespace autofill { |
| 32 | 32 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 OnSuggestionsReturned(0, | 264 OnSuggestionsReturned(0, |
| 265 testing::Truly(IsEmptySuggestionVector))); | 265 testing::Truly(IsEmptySuggestionVector))); |
| 266 autocomplete_history_manager.OnGetAutocompleteSuggestions( | 266 autocomplete_history_manager.OnGetAutocompleteSuggestions( |
| 267 0, | 267 0, |
| 268 field.name, | 268 field.name, |
| 269 field.value, | 269 field.value, |
| 270 field.form_control_type); | 270 field.form_control_type); |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace autofill | 273 } // namespace autofill |
| OLD | NEW |