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

Unified Diff: components/image_fetcher/ios/BUILD.gn

Issue 2699633006: Move WebpDecoder from ios/web to components/image_fetcher (Closed)
Patch Set: Separate header Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/image_fetcher/ios/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/ios/BUILD.gn
diff --git a/components/image_fetcher/ios/BUILD.gn b/components/image_fetcher/ios/BUILD.gn
index c5c1705d31a47f815573faf4614674a2e5b4810c..88d514b151fba22abc4650e62ebeed4f764e63f7 100644
--- a/components/image_fetcher/ios/BUILD.gn
+++ b/components/image_fetcher/ios/BUILD.gn
@@ -6,12 +6,14 @@ source_set("ios") {
sources = [
"ios_image_data_fetcher_wrapper.h",
"ios_image_data_fetcher_wrapper.mm",
+ "webp_decoder.h",
+ "webp_decoder.mm",
]
deps = [
"//base",
"//components/image_fetcher",
- "//ios/web/public/image_fetcher",
"//net",
+ "//third_party/libwebp:libwebp_dec",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
@@ -20,11 +22,12 @@ source_set("unit_tests") {
testonly = true
sources = [
"ios_image_data_fetcher_wrapper_unittest.mm",
+ "webp_decoder_unittest.mm",
]
deps = [
":ios",
+ ":webp_transcode_unit_tests_bundle_data",
"//base",
- "//ios/web/public/image_fetcher",
"//net",
"//net:test_support",
"//testing/gmock",
@@ -32,3 +35,20 @@ source_set("unit_tests") {
]
configs += [ "//build/config/compiler:enable_arc" ]
}
+
+bundle_data("webp_transcode_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}}",
+ ]
+}
« no previous file with comments | « no previous file | components/image_fetcher/ios/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698