| # Copyright 2016 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("favicon") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "favicon_client_impl.h", |
| "favicon_client_impl.mm", |
| "favicon_loader.h", |
| "favicon_loader.mm", |
| "favicon_service_factory.cc", |
| "favicon_service_factory.h", |
| "ios_chrome_favicon_loader_factory.h", |
| "ios_chrome_favicon_loader_factory.mm", |
| "ios_chrome_large_icon_cache_factory.cc", |
| "ios_chrome_large_icon_cache_factory.h", |
| "ios_chrome_large_icon_service_factory.cc", |
| "ios_chrome_large_icon_service_factory.h", |
| "large_icon_cache.cc", |
| "large_icon_cache.h", |
| ] |
| deps = [ |
| "//components/favicon/core", |
| "//components/favicon/core:history_implementation", |
| "//components/image_fetcher/core", |
| "//components/image_fetcher/ios", |
| "//components/resources", |
| "//ios/chrome/browser/history", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/model/url:constants", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/common/ui/favicon", |
| "//ios/components/webui:url_constants", |
| "//ios/web", |
| "//skia", |
| "//ui/base", |
| "//url", |
| ] |
| public_deps = [ |
| "//base", |
| "//components/favicon_base", |
| "//components/keyed_service/core", |
| "//components/keyed_service/ios", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "favicon_loader_unittest.mm", |
| "large_icon_cache_unittest.cc", |
| ] |
| deps = [ |
| ":favicon", |
| "//base", |
| "//components/favicon/core", |
| "//components/favicon_base", |
| "//ios/chrome/common/ui/favicon", |
| "//skia", |
| "//testing/gtest", |
| "//ui/gfx/codec", |
| "//url", |
| ] |
| } |