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

Unified Diff: skia/BUILD.gn

Issue 837243002: Reland "skia: Add 'skia_unittests' test suite for this directory." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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 | « chrome/chrome_tests_unit.gypi ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index b2e703b768578a2a0c209df21c30ac2455f90e29..eb54593088922dd0c1adc673afad52f3fe8e23e6 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -7,6 +7,9 @@ import("//build/config/ui.gni")
if (cpu_arch == "arm") {
import("//build/config/arm.gni")
}
+if (is_android) {
+ import("//build/config/android/rules.gni")
+}
skia_support_gpu = !is_ios
skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview)
@@ -710,3 +713,46 @@ source_set("skia_opts") {
visibility = [ ":skia" ]
}
+
+test("skia_unittests") {
+ sources = [
+ "ext/analysis_canvas_unittest.cc",
+ "ext/bitmap_platform_device_mac_unittest.cc",
+ "ext/convolver_unittest.cc",
+ "ext/image_operations_unittest.cc",
+ "ext/pixel_ref_utils_unittest.cc",
+ "ext/platform_canvas_unittest.cc",
+ "ext/recursive_gaussian_convolution_unittest.cc",
+ "ext/refptr_unittest.cc",
+ "ext/skia_utils_ios_unittest.mm",
+ "ext/skia_utils_mac_unittest.mm",
+ "ext/vector_canvas_unittest.cc",
+ ]
+
+ if (!is_win) {
+ sources -= [ "ext/vector_canvas_unittest.cc" ]
+ }
+
+ if (!is_win && !is_mac) {
+ sources -= [ "ext/platform_canvas_unittest.cc" ]
+ }
+
+ deps = [
+ ":skia",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//testing/gtest",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ ]
+}
+
+if (is_android) {
+ # GYP: //skia/skia_tests.gyp:skia_unittests_apk
+ unittest_apk("skia_unittests_apk") {
+ unittests_dep = ":skia_unittests"
+ deps = [
+ ":skia_unittests",
+ ]
+ }
+}
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698