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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/prefs/pref_service.h" | |
11 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
13 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" | 12 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
14 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 13 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
15 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
16 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
17 #include "components/autofill/content/browser/content_autofill_driver.h" | 16 #include "components/autofill/content/browser/content_autofill_driver.h" |
18 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 17 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
19 #include "components/autofill/core/browser/autofill_external_delegate.h" | 18 #include "components/autofill/core/browser/autofill_external_delegate.h" |
20 #include "components/autofill/core/browser/autofill_manager.h" | 19 #include "components/autofill/core/browser/autofill_manager.h" |
21 #include "components/autofill/core/browser/autofill_test_utils.h" | 20 #include "components/autofill/core/browser/autofill_test_utils.h" |
22 #include "components/autofill/core/browser/popup_item_ids.h" | 21 #include "components/autofill/core/browser/popup_item_ids.h" |
23 #include "components/autofill/core/browser/test_autofill_client.h" | 22 #include "components/autofill/core/browser/test_autofill_client.h" |
24 #include "components/autofill/core/browser/test_autofill_external_delegate.h" | 23 #include "components/autofill/core/browser/test_autofill_external_delegate.h" |
| 24 #include "components/prefs/pref_service.h" |
25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
26 #include "testing/gmock/include/gmock/gmock.h" | 26 #include "testing/gmock/include/gmock/gmock.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "ui/gfx/display.h" | 28 #include "ui/gfx/display.h" |
29 #include "ui/gfx/geometry/rect.h" | 29 #include "ui/gfx/geometry/rect.h" |
30 #include "ui/gfx/text_utils.h" | 30 #include "ui/gfx/text_utils.h" |
31 | 31 |
32 using ::testing::_; | 32 using ::testing::_; |
33 using ::testing::AtLeast; | 33 using ::testing::AtLeast; |
34 using ::testing::NiceMock; | 34 using ::testing::NiceMock; |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 462 |
463 // The second element was shorter so it should be unchanged. | 463 // The second element was shorter so it should be unchanged. |
464 EXPECT_EQ(autofill_popup_controller_->GetSuggestionAt(1).value, | 464 EXPECT_EQ(autofill_popup_controller_->GetSuggestionAt(1).value, |
465 autofill_popup_controller_->GetElidedValueAt(1)); | 465 autofill_popup_controller_->GetElidedValueAt(1)); |
466 EXPECT_EQ(autofill_popup_controller_->GetSuggestionAt(1).label, | 466 EXPECT_EQ(autofill_popup_controller_->GetSuggestionAt(1).label, |
467 autofill_popup_controller_->GetElidedLabelAt(1)); | 467 autofill_popup_controller_->GetElidedLabelAt(1)); |
468 } | 468 } |
469 #endif | 469 #endif |
470 | 470 |
471 } // namespace autofill | 471 } // namespace autofill |
OLD | NEW |