| 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/memory/weak_ptr.h" | 6 #include "base/memory/weak_ptr.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" | 9 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 10 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
| 11 #include "chrome/browser/ui/autofill/popup_constants.h" | 11 #include "chrome/browser/ui/autofill/popup_constants.h" |
| 12 #include "chrome/browser/ui/autofill/test_popup_controller_common.h" | 12 #include "chrome/browser/ui/autofill/test_popup_controller_common.h" |
| 13 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 13 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
| 15 #include "components/autofill/content/browser/autofill_driver_impl.h" | 15 #include "components/autofill/content/browser/autofill_driver_impl.h" |
| 16 #include "components/autofill/core/browser/autofill_external_delegate.h" | 16 #include "components/autofill/core/browser/autofill_external_delegate.h" |
| 17 #include "components/autofill/core/browser/autofill_manager.h" | 17 #include "components/autofill/core/browser/autofill_manager.h" |
| 18 #include "components/autofill/core/browser/autofill_test_utils.h" | 18 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 19 #include "components/autofill/core/browser/popup_item_ids.h" | 19 #include "components/autofill/core/browser/popup_item_ids.h" |
| 20 #include "components/autofill/core/browser/test_autofill_external_delegate.h" | 20 #include "components/autofill/core/browser/test_autofill_external_delegate.h" |
| 21 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" | 21 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" |
| 22 #include "grit/webkit_resources.h" | 22 #include "grit/autofill_resources.h" |
| 23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
| 26 #include "ui/gfx/display.h" | 26 #include "ui/gfx/display.h" |
| 27 #include "ui/gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
| 28 #include "ui/gfx/text_utils.h" | 28 #include "ui/gfx/text_utils.h" |
| 29 | 29 |
| 30 using ::testing::_; | 30 using ::testing::_; |
| 31 using ::testing::AtLeast; | 31 using ::testing::AtLeast; |
| 32 using ::testing::NiceMock; | 32 using ::testing::NiceMock; |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 EXPECT_NE(names[0], autofill_popup_controller_->names()[0]); | 529 EXPECT_NE(names[0], autofill_popup_controller_->names()[0]); |
| 530 EXPECT_NE(subtexts[0], autofill_popup_controller_->subtexts()[0]); | 530 EXPECT_NE(subtexts[0], autofill_popup_controller_->subtexts()[0]); |
| 531 | 531 |
| 532 // The second element was shorter so it should be unchanged. | 532 // The second element was shorter so it should be unchanged. |
| 533 EXPECT_EQ(names[1], autofill_popup_controller_->names()[1]); | 533 EXPECT_EQ(names[1], autofill_popup_controller_->names()[1]); |
| 534 EXPECT_EQ(subtexts[1], autofill_popup_controller_->subtexts()[1]); | 534 EXPECT_EQ(subtexts[1], autofill_popup_controller_->subtexts()[1]); |
| 535 } | 535 } |
| 536 #endif | 536 #endif |
| 537 | 537 |
| 538 } // namespace autofill | 538 } // namespace autofill |
| OLD | NEW |