# Copyright 2017 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("ios") {
sources = [
"ios_image_data_fetcher_wrapper.h",
"ios_image_data_fetcher_wrapper.mm",
"ios_image_decoder_impl.h",
"ios_image_decoder_impl.mm",
]
deps = [
"//base",
"//components/image_fetcher/core",
"//ios/web/public/thread",
"//net",
"//ui/gfx",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"ios_image_data_fetcher_wrapper_unittest.mm",
"ios_image_decoder_impl_unittest.mm",
]
deps = [
":ios",
":webp_transcode_unit_tests_bundle_data",
"//base",
"//base/test:test_support",
"//net",
"//services/network:test_support",
"//services/network/public/cpp",
"//testing/gmock",
"//testing/gtest",
"//ui/gfx",
]
}
bundle_data("webp_transcode_unit_tests_bundle_data") {
visibility = [ ":unit_tests" ]
testonly = true
sources = [
"//components/test/data/webp_transcode/test.jpg",
"//components/test/data/webp_transcode/test.webp",
"//components/test/data/webp_transcode/test_alpha.png",
"//components/test/data/webp_transcode/test_alpha.webp",
"//components/test/data/webp_transcode/test_small.tiff",
"//components/test/data/webp_transcode/test_small.webp",
]
outputs = [ "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" +
"{{source_file_part}}" ]
}