| 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/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 12 #include "components/autofill/core/browser/autofill_manager.h" | 12 #include "components/autofill/core/browser/autofill_manager.h" |
| 13 #include "components/autofill/core/browser/test_autofill_driver.h" | 13 #include "components/autofill/core/browser/test_autofill_driver.h" |
| 14 #include "components/autofill/core/browser/test_autofill_external_delegate.h" | 14 #include "components/autofill/core/browser/test_autofill_external_delegate.h" |
| 15 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" | 15 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" |
| 16 #include "components/autofill/core/common/form_data.h" | 16 #include "components/autofill/core/common/form_data.h" |
| 17 #include "components/autofill/core/common/form_field_data.h" | 17 #include "components/autofill/core/common/form_field_data.h" |
| 18 #include "components/autofill/core/common/password_form_fill_data.h" | 18 #include "components/autofill/core/common/password_form_fill_data.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "third_party/WebKit/public/web/WebAutofillClient.h" | 21 #include "third_party/WebKit/public/web/WebAutofillClient.h" |
| 22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
| 23 | 23 |
| 24 using testing::_; | 24 using testing::_; |
| 25 using WebKit::WebAutofillClient; | 25 using blink::WebAutofillClient; |
| 26 | 26 |
| 27 namespace autofill { | 27 namespace autofill { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 // A constant value to use as the Autofill query ID. | 31 // A constant value to use as the Autofill query ID. |
| 32 const int kQueryId = 5; | 32 const int kQueryId = 5; |
| 33 | 33 |
| 34 // A constant value to use as an Autofill profile ID. | 34 // A constant value to use as an Autofill profile ID. |
| 35 const int kAutofillProfileId = 1; | 35 const int kAutofillProfileId = 1; |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 EXPECT_CALL(manager_delegate_, HideAutofillPopup()); | 464 EXPECT_CALL(manager_delegate_, HideAutofillPopup()); |
| 465 | 465 |
| 466 external_delegate_->OnSuggestionsReturned(kQueryId, | 466 external_delegate_->OnSuggestionsReturned(kQueryId, |
| 467 autofill_items, | 467 autofill_items, |
| 468 autofill_items, | 468 autofill_items, |
| 469 autofill_items, | 469 autofill_items, |
| 470 autofill_ids); | 470 autofill_ids); |
| 471 } | 471 } |
| 472 | 472 |
| 473 } // namespace autofill | 473 } // namespace autofill |
| OLD | NEW |