Index: mojo/gles2/BUILD.gn |
diff --git a/mojo/gles2/BUILD.gn b/mojo/gles2/BUILD.gn |
index ee32ab12fd9783d168c0c8aa315284390ca755e2..ab5883eae6c08dfd52e8f0d906ba54360399dbae 100644 |
--- a/mojo/gles2/BUILD.gn |
+++ b/mojo/gles2/BUILD.gn |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//testing/test.gni") |
import("//mojo/public/tools/bindings/mojom.gni") |
config("mojo_use_gles2") { |
@@ -79,3 +80,22 @@ source_set("mgl") { |
"//mojo/public/cpp/system", |
] |
} |
+ |
+test("mgl_unittests") { |
+ deps = [ |
+ ":mgl", |
+ "//base", |
+ "//base/test:test_support", |
+ "//mojo/edk/system", |
+ "//mojo/edk/test:test_support_impl", |
+ "//mojo/public/c/gpu:MGL", |
+ "//mojo/public/c/test_support:test_support", |
+ "//mojo/public/cpp/environment:standalone", |
+ "//testing/gtest:gtest", |
+ ] |
+ |
+ sources = [ |
+ "../edk/test/run_all_unittests.cc", |
jamesr
2015/09/22 23:38:50
sourcing in ../xxx files is dodgy. if this file is
Petr Hosek
2015/09/23 00:04:31
Turned out there is a target for that file, so thi
|
+ "mgl_unittest.cc", |
+ ] |
+} |