Index: components/viz/hittest/BUILD.gn |
diff --git a/components/viz/hittest/BUILD.gn b/components/viz/hittest/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cf7d755014b30f3b75ecf02f83f95502b70325a6 |
--- /dev/null |
+++ b/components/viz/hittest/BUILD.gn |
@@ -0,0 +1,43 @@ |
+# Copyright 2017 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//testing/test.gni") |
+ |
+component("hittest") { |
+ defines = [ "HITTEST_IMPLEMENTATION" ] |
+ |
+ sources = [ |
+ "display_hittest_data.cc", |
+ "display_hittest_data.h", |
+ "hittest_aggregator.cc", |
+ "hittest_aggregator.h", |
+ ] |
+ |
+ deps = [ |
+ "//cc/ipc:interfaces", |
+ "//components/viz/hittest/public/interfaces", |
+ ] |
+} |
+ |
+# This test covers all testable components in display. |
+test("viz_hittest_unittests") { |
+ sources = [ |
+ "hittest_aggregator_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":hittest", |
+ "//base", |
+ "//base/test:run_all_unittests", |
+ "//base/test:test_support", |
+ "//components/viz/hittest/public/interfaces", |
+ "//testing/gtest", |
+ ] |
+ |
+ public_deps = [ |
+ "//skia/public/interfaces", |
rjkroege
2017/06/07 17:16:45
did you figure out why you need this?
gklassen
2017/06/07 20:04:43
Done.
|
+ "//ui/gfx/geometry/mojo", |
+ "//ui/gfx/mojo", |
+ ] |
+} |