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/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/test/base/testing_profile.h" | |
12 #include "components/autofill/core/browser/autofill_manager.h" | 11 #include "components/autofill/core/browser/autofill_manager.h" |
13 #include "components/autofill/core/browser/popup_item_ids.h" | 12 #include "components/autofill/core/browser/popup_item_ids.h" |
14 #include "components/autofill/core/browser/test_autofill_driver.h" | 13 #include "components/autofill/core/browser/test_autofill_driver.h" |
15 #include "components/autofill/core/browser/test_autofill_external_delegate.h" | 14 #include "components/autofill/core/browser/test_autofill_external_delegate.h" |
16 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" | 15 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" |
17 #include "components/autofill/core/common/form_data.h" | 16 #include "components/autofill/core/common/form_data.h" |
18 #include "components/autofill/core/common/form_field_data.h" | 17 #include "components/autofill/core/common/form_field_data.h" |
19 #include "components/autofill/core/common/password_form_fill_data.h" | 18 #include "components/autofill/core/common/password_form_fill_data.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegateSetNodeText) { | 482 TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegateSetNodeText) { |
484 EXPECT_CALL(manager_delegate_, HideAutofillPopup()); | 483 EXPECT_CALL(manager_delegate_, HideAutofillPopup()); |
485 base::string16 dummy_string(ASCIIToUTF16("baz foo")); | 484 base::string16 dummy_string(ASCIIToUTF16("baz foo")); |
486 EXPECT_CALL(*autofill_driver_, | 485 EXPECT_CALL(*autofill_driver_, |
487 RendererShouldSetNodeText(dummy_string)); | 486 RendererShouldSetNodeText(dummy_string)); |
488 external_delegate_->DidAcceptSuggestion(dummy_string, | 487 external_delegate_->DidAcceptSuggestion(dummy_string, |
489 POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY); | 488 POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY); |
490 } | 489 } |
491 | 490 |
492 } // namespace autofill | 491 } // namespace autofill |
OLD | NEW |