Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1143)

Side by Side Diff: components/webp_transcode/BUILD.gn

Issue 1903443002: [GN/iOS] Explicitly list test data in //components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-fix-jingle
Patch Set: Address comments and disable non-fonctional test Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/webdata/common/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 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("webp_transcode") {
6 sources = [ 6 sources = [
7 "webp_decoder.h", 7 "webp_decoder.h",
8 "webp_decoder.mm", 8 "webp_decoder.mm",
9 ] 9 ]
10 10
11 deps = [ 11 deps = [
12 "//base", 12 "//base",
13 "//ios/net", 13 "//ios/net",
14 "//net", 14 "//net",
15 "//third_party/libwebp:libwebp_dec", 15 "//third_party/libwebp:libwebp_dec",
16 ] 16 ]
17 } 17 }
18 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
19 source_set("unit_tests") { 36 source_set("unit_tests") {
20 testonly = true 37 testonly = true
21 sources = [ 38 sources = [
22 "webp_decoder_unittest.mm", 39 "webp_decoder_unittest.mm",
23 ] 40 ]
24 41
25 deps = [ 42 deps = [
43 ":unit_tests_bundle_data",
26 ":webp_transcode", 44 ":webp_transcode",
27 "//base", 45 "//base",
28 "//net", 46 "//net",
29 "//net:test_support", 47 "//net:test_support",
30 "//testing/gmock", 48 "//testing/gmock",
31 "//testing/gtest", 49 "//testing/gtest",
32 "//third_party/ocmock", 50 "//third_party/ocmock",
33 ] 51 ]
34 } 52 }
OLDNEW
« no previous file with comments | « components/webdata/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698