| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "chrome/browser/autofill/autofill_manager.h" | 9 #include "chrome/browser/autofill/autofill_manager.h" |
| 10 #include "chrome/browser/autofill/test_autofill_external_delegate.h" | 10 #include "chrome/browser/autofill/test_autofill_external_delegate.h" |
| 11 #include "chrome/browser/autofill/test_autofill_manager_delegate.h" | 11 #include "chrome/browser/autofill/test_autofill_manager_delegate.h" |
| 12 #include "chrome/common/form_data.h" | |
| 13 #include "chrome/common/form_field_data.h" | |
| 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 12 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 15 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 14 #include "components/autofill/common/form_data.h" |
| 15 #include "components/autofill/common/form_field_data.h" |
| 16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" |
| 20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 using testing::_; | 23 using testing::_; |
| 24 using WebKit::WebAutofillClient; | 24 using WebKit::WebAutofillClient; |
| 25 | 25 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 EXPECT_CALL(*autofill_manager_, OnFillAutofillFormData(_, _, _, _)); | 299 EXPECT_CALL(*autofill_manager_, OnFillAutofillFormData(_, _, _, _)); |
| 300 | 300 |
| 301 EXPECT_CALL(manager_delegate_, HideAutofillPopup()); | 301 EXPECT_CALL(manager_delegate_, HideAutofillPopup()); |
| 302 | 302 |
| 303 // This should trigger a call to hide the popup since | 303 // This should trigger a call to hide the popup since |
| 304 // we've selected an option. | 304 // we've selected an option. |
| 305 external_delegate_->DidAcceptSuggestion( | 305 external_delegate_->DidAcceptSuggestion( |
| 306 suggestions[0], | 306 suggestions[0], |
| 307 WebAutofillClient::MenuItemIDPasswordEntry); | 307 WebAutofillClient::MenuItemIDPasswordEntry); |
| 308 } | 308 } |
| OLD | NEW |