OLD | NEW |
| (Empty) |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 source_set("webp_transcode") { | |
6 sources = [ | |
7 "webp_decoder.h", | |
8 "webp_decoder.mm", | |
9 ] | |
10 | |
11 deps = [ | |
12 "//base", | |
13 "//ios/net", | |
14 "//net", | |
15 "//third_party/libwebp:libwebp_dec", | |
16 ] | |
17 } | |
18 | |
19 bundle_data("unit_tests_bundle_data") { | |
20 visibility = [ ":unit_tests" ] | |
21 testonly = true | |
22 sources = [ | |
23 "//components/test/data/webp_transcode/test.jpg", | |
24 "//components/test/data/webp_transcode/test.webp", | |
25 "//components/test/data/webp_transcode/test_alpha.png", | |
26 "//components/test/data/webp_transcode/test_alpha.webp", | |
27 "//components/test/data/webp_transcode/test_small.tiff", | |
28 "//components/test/data/webp_transcode/test_small.webp", | |
29 ] | |
30 outputs = [ | |
31 "{{bundle_resources_dir}}/" + | |
32 "{{source_root_relative_dir}}/{{source_file_part}}", | |
33 ] | |
34 } | |
35 | |
36 source_set("unit_tests") { | |
37 testonly = true | |
38 sources = [ | |
39 "webp_decoder_unittest.mm", | |
40 ] | |
41 | |
42 deps = [ | |
43 ":unit_tests_bundle_data", | |
44 ":webp_transcode", | |
45 "//base", | |
46 "//net", | |
47 "//net:test_support", | |
48 "//testing/gmock", | |
49 "//testing/gtest", | |
50 "//third_party/ocmock", | |
51 ] | |
52 } | |
OLD | NEW |