| 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 "components/favicon/core/browser/favicon_handler.h" | 5 #include "components/favicon/core/favicon_handler.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/favicon/chrome_favicon_client.h" | 8 #include "chrome/browser/favicon/chrome_favicon_client.h" |
| 9 #include "chrome/browser/favicon/chrome_favicon_client_factory.h" | 9 #include "chrome/browser/favicon/chrome_favicon_client_factory.h" |
| 10 #include "chrome/browser/favicon/favicon_service_factory.h" | 10 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 11 #include "chrome/browser/favicon/favicon_tab_helper.h" | 11 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 12 #include "chrome/browser/history/history_service_factory.h" | 12 #include "chrome/browser/history/history_service_factory.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 15 #include "components/favicon/core/browser/favicon_service.h" | 15 #include "components/favicon/core/favicon_service.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 #include "ui/gfx/codec/png_codec.h" | 17 #include "ui/gfx/codec/png_codec.h" |
| 18 #include "ui/gfx/favicon_size.h" | 18 #include "ui/gfx/favicon_size.h" |
| 19 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 20 | 20 |
| 21 class TestFaviconHandler; | 21 class TestFaviconHandler; |
| 22 | 22 |
| 23 using favicon::FaviconURL; | 23 using favicon::FaviconURL; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| (...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 EXPECT_EQ(new_favicon_url, driver1.available_icon_url()); | 1655 EXPECT_EQ(new_favicon_url, driver1.available_icon_url()); |
| 1656 EXPECT_FALSE(driver1.update_active_favicon()); | 1656 EXPECT_FALSE(driver1.update_active_favicon()); |
| 1657 EXPECT_EQ(3u, driver1.num_favicon_available()); | 1657 EXPECT_EQ(3u, driver1.num_favicon_available()); |
| 1658 } | 1658 } |
| 1659 | 1659 |
| 1660 INSTANTIATE_TEST_CASE_P(FaviconHandlerTestActiveFaviconValidityTrueOrFalse, | 1660 INSTANTIATE_TEST_CASE_P(FaviconHandlerTestActiveFaviconValidityTrueOrFalse, |
| 1661 FaviconHandlerActiveFaviconValidityParamTest, | 1661 FaviconHandlerActiveFaviconValidityParamTest, |
| 1662 ::testing::Bool()); | 1662 ::testing::Bool()); |
| 1663 | 1663 |
| 1664 } // namespace. | 1664 } // namespace. |
| OLD | NEW |