Index: services/shape_detection/BUILD.gn |
diff --git a/services/shape_detection/BUILD.gn b/services/shape_detection/BUILD.gn |
index 2546fb7f580615917adca8b2c698fae2757790d7..31ea9a30bda2e964a589a0e2f97e563adbefca58 100644 |
--- a/services/shape_detection/BUILD.gn |
+++ b/services/shape_detection/BUILD.gn |
@@ -4,6 +4,7 @@ |
import("//services/service_manager/public/cpp/service.gni") |
import("//services/service_manager/public/service_manifest.gni") |
+import("//testing/test.gni") |
source_set("lib") { |
sources = [ |
@@ -48,3 +49,28 @@ service_manifest("manifest") { |
name = "shape_detection" |
source = "manifest.json" |
} |
+ |
+test("shape_detection_unittests") { |
+ if (is_mac) { |
Robert Sesek
2017/02/10 20:24:37
This may complain on non-Mac about an empty target
mcasas
2017/02/10 21:05:06
Done.
|
+ sources = [ |
+ "barcode_detection_impl_mac_unittest.mm", |
+ "face_detection_impl_mac_unittest.mm", |
+ ] |
+ |
+ libs = [ |
+ "CoreFoundation.framework", |
+ "CoreGraphics.framework", |
+ "QuartzCore.framework", |
+ ] |
+ } |
+ |
+ deps = [ |
+ ":lib", |
+ "//base", |
+ "//mojo/edk/test:run_all_unittests", |
+ "//skia", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ "//ui/gfx", |
+ ] |
+} |