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