| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 source_set("image_fetcher") { | 5 source_set("image_fetcher") { |
| 6 configs += [ "//build/config/compiler:enable_arc" ] | 6 configs += [ "//build/config/compiler:enable_arc" ] |
| 7 sources = [ | 7 sources = [ |
| 8 "image_data_fetcher.h", | |
| 9 "image_data_fetcher.mm", | |
| 10 "webp_decoder.h", | 8 "webp_decoder.h", |
| 11 "webp_decoder.mm", | 9 "webp_decoder.mm", |
| 12 ] | 10 ] |
| 13 deps = [ | 11 deps = [ |
| 14 "//base", | 12 "//base", |
| 15 "//net", | |
| 16 "//third_party/libwebp:libwebp_dec", | 13 "//third_party/libwebp:libwebp_dec", |
| 17 ] | 14 ] |
| 18 } | 15 } |
| 19 | 16 |
| 20 source_set("unit_tests") { | 17 source_set("unit_tests") { |
| 21 configs += [ "//build/config/compiler:enable_arc" ] | 18 configs += [ "//build/config/compiler:enable_arc" ] |
| 22 testonly = true | 19 testonly = true |
| 23 sources = [ | 20 sources = [ |
| 24 "image_data_fetcher_unittest.mm", | |
| 25 "webp_decoder_unittest.mm", | 21 "webp_decoder_unittest.mm", |
| 26 ] | 22 ] |
| 27 deps = [ | 23 deps = [ |
| 28 ":image_fetcher", | 24 ":image_fetcher", |
| 29 ":webp_transcode_unit_tests_bundle_data", | 25 ":webp_transcode_unit_tests_bundle_data", |
| 30 "//base", | 26 "//base", |
| 31 "//net", | |
| 32 "//net:test_support", | |
| 33 "//testing/gmock", | 27 "//testing/gmock", |
| 34 "//testing/gtest", | 28 "//testing/gtest", |
| 35 ] | 29 ] |
| 36 libs = [ "CoreGraphics.framework" ] | 30 libs = [ "CoreGraphics.framework" ] |
| 37 } | 31 } |
| 38 | 32 |
| 39 bundle_data("webp_transcode_unit_tests_bundle_data") { | 33 bundle_data("webp_transcode_unit_tests_bundle_data") { |
| 40 visibility = [ ":unit_tests" ] | 34 visibility = [ ":unit_tests" ] |
| 41 testonly = true | 35 testonly = true |
| 42 sources = [ | 36 sources = [ |
| 43 "//ios/web/test/data/webp_transcode/test.jpg", | 37 "//ios/web/test/data/webp_transcode/test.jpg", |
| 44 "//ios/web/test/data/webp_transcode/test.webp", | 38 "//ios/web/test/data/webp_transcode/test.webp", |
| 45 "//ios/web/test/data/webp_transcode/test_alpha.png", | 39 "//ios/web/test/data/webp_transcode/test_alpha.png", |
| 46 "//ios/web/test/data/webp_transcode/test_alpha.webp", | 40 "//ios/web/test/data/webp_transcode/test_alpha.webp", |
| 47 "//ios/web/test/data/webp_transcode/test_small.tiff", | 41 "//ios/web/test/data/webp_transcode/test_small.tiff", |
| 48 "//ios/web/test/data/webp_transcode/test_small.webp", | 42 "//ios/web/test/data/webp_transcode/test_small.webp", |
| 49 ] | 43 ] |
| 50 outputs = [ | 44 outputs = [ |
| 51 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + | 45 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
| 52 "{{source_file_part}}", | 46 "{{source_file_part}}", |
| 53 ] | 47 ] |
| 54 } | 48 } |
| OLD | NEW |