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

Unified Diff: ios/web/public/image_fetcher/BUILD.gn

Issue 2526773002: Move iOS ImageFetcher to ios/web/public (Closed)
Patch Set: Rename headers Created 4 years 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 | « ios/web/BUILD.gn ('k') | ios/web/public/image_fetcher/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/image_fetcher/BUILD.gn
diff --git a/ios/chrome/browser/webp_transcode/BUILD.gn b/ios/web/public/image_fetcher/BUILD.gn
similarity index 62%
rename from ios/chrome/browser/webp_transcode/BUILD.gn
rename to ios/web/public/image_fetcher/BUILD.gn
index f52fbfc99dbfc2c6e7c15dc01a13983eee25dbb7..7c93ce1d42e88ced8174c8700c5f6fa53c2b4746 100644
--- a/ios/chrome/browser/webp_transcode/BUILD.gn
+++ b/ios/web/public/image_fetcher/BUILD.gn
@@ -2,14 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-source_set("webp_transcode") {
+source_set("image_fetcher") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
+ "image_data_fetcher.h",
+ "image_data_fetcher.mm",
"webp_decoder.h",
"webp_decoder.mm",
]
deps = [
"//base",
+ "//net",
"//third_party/libwebp:libwebp_dec",
]
}
@@ -18,12 +21,15 @@ source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
+ "image_data_fetcher_unittest.mm",
"webp_decoder_unittest.mm",
]
deps = [
- ":webp_transcode",
+ ":image_fetcher",
":webp_transcode_unit_tests_bundle_data",
"//base",
+ "//net",
+ "//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
@@ -34,12 +40,12 @@ bundle_data("webp_transcode_unit_tests_bundle_data") {
visibility = [ ":unit_tests" ]
testonly = true
sources = [
- "//ios/chrome/test/data/webp_transcode/test.jpg",
- "//ios/chrome/test/data/webp_transcode/test.webp",
- "//ios/chrome/test/data/webp_transcode/test_alpha.png",
- "//ios/chrome/test/data/webp_transcode/test_alpha.webp",
- "//ios/chrome/test/data/webp_transcode/test_small.tiff",
- "//ios/chrome/test/data/webp_transcode/test_small.webp",
+ "//ios/web/test/data/webp_transcode/test.jpg",
+ "//ios/web/test/data/webp_transcode/test.webp",
+ "//ios/web/test/data/webp_transcode/test_alpha.png",
+ "//ios/web/test/data/webp_transcode/test_alpha.webp",
+ "//ios/web/test/data/webp_transcode/test_small.tiff",
+ "//ios/web/test/data/webp_transcode/test_small.webp",
]
outputs = [
"{{bundle_resources_dir}}/{{source_root_relative_dir}}/" +
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/public/image_fetcher/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698