| # Copyright 2015 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("webp_transcode") { |
| sources = [ |
| "webp_decoder.h", |
| "webp_decoder.mm", |
| ] |
| |
| deps = [ |
| "//base", |
| "//ios/net", |
| "//net", |
| "//third_party/libwebp:libwebp_dec", |
| ] |
| } |
| |
| bundle_data("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}}", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "webp_decoder_unittest.mm", |
| ] |
| |
| deps = [ |
| ":unit_tests_bundle_data", |
| ":webp_transcode", |
| "//base", |
| "//net", |
| "//net:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |