Index: services/shape_detection/BUILD.gn |
diff --git a/services/shape_detection/BUILD.gn b/services/shape_detection/BUILD.gn |
index 2546fb7f580615917adca8b2c698fae2757790d7..1bafa7a8314ca8c35e22aef1fb3260e221f490e1 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" |
} |
+ |
+if (is_mac) { |
+ test("shape_detection_unittests") { |
+ 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", |
+ ] |
+ } |
+} |