Index: components/viz/hit_test/BUILD.gn |
diff --git a/components/viz/hit_test/BUILD.gn b/components/viz/hit_test/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e1242cc50b07b6e40cf41f8b96d638123a35628c |
--- /dev/null |
+++ b/components/viz/hit_test/BUILD.gn |
@@ -0,0 +1,44 @@ |
+# 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("hit_test") { |
+ defines = [ "HIT_TEST_IMPLEMENTATION" ] |
+ |
+ sources = [ |
+ "display_hit_test_data.h", |
+ "display_hit_test_data_factory.h", |
+ "display_hit_test_data_factory_local.cc", |
+ "display_hit_test_data_factory_local.h", |
+ "hit_test_aggregator.cc", |
+ "hit_test_aggregator.h", |
+ ] |
+ |
+ deps = [ |
+ "//cc/ipc:interfaces", |
+ "//components/viz/hit_test/public/interfaces", |
+ ] |
+} |
+ |
+# This test covers all testable components in display. |
+test("viz_hit_test_unittests") { |
+ sources = [ |
+ "hit_test_aggregator_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":hit_test", |
+ "//base", |
+ "//base/test:run_all_unittests", |
+ "//base/test:test_support", |
+ "//components/viz/hit_test/public/interfaces", |
+ "//testing/gtest", |
+ ] |
+ |
+ public_deps = [ |
+ "//ui/gfx/geometry/mojo", |
+ "//ui/gfx/mojo", |
+ ] |
+} |