Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: mojo/public/c/BUILD.gn

Issue 2234063002: Move the C bindings tests to the new location. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_mojo_bindings
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/public/c/bindings/tests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/BUILD.gn
diff --git a/mojo/public/c/BUILD.gn b/mojo/public/c/BUILD.gn
index 2583fa4f7b3d652fe10e1ccec5ee3881a45868bc..94fc1b67d10a7628011aaa45a316a14291ae413f 100644
--- a/mojo/public/c/BUILD.gn
+++ b/mojo/public/c/BUILD.gn
@@ -59,6 +59,36 @@ mojo_sdk_source_set("bindings") {
]
}
+mojo_sdk_source_set("bindings_unittests") {
+ testonly = true
+
+ sources = [
+ "tests/bindings/array_unittest.cc",
+ "tests/bindings/buffer_unittest.cc",
+ "tests/bindings/message_unittest.cc",
+ "tests/bindings/struct_unittest.cc",
+ "tests/bindings/testing_util.h",
+ "tests/bindings/union_unittest.cc",
+ "tests/bindings/validation_unittest.cc",
+ ]
+
+ deps = [
+ ":bindings",
+ "//testing/gtest",
+ ]
+
+ mojo_sdk_deps = [
+ "mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils",
+ "mojo/public/cpp/bindings/tests:validation_util",
+ "mojo/public/cpp/test_support",
+ "mojo/public/cpp/system",
+
+ # The "_c" suffix'd target compiles the generated C bindings to this mojom
+ # target.
+ "mojo/public/interfaces/bindings/tests:test_interfaces_c",
+ ]
+}
+
# common -----------------------------------------------------------------------
# Headers in include/mojo (to be included as <mojo/HEADER.h>).
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/public/c/bindings/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698