summaryrefslogtreecommitdiffstats
path: root/mojo/public/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/public/interfaces')
-rw-r--r--mojo/public/interfaces/bindings/tests/BUILD.gn10
-rw-r--r--mojo/public/interfaces/bindings/tests/test_variant.mojom10
2 files changed, 20 insertions, 0 deletions
diff --git a/mojo/public/interfaces/bindings/tests/BUILD.gn b/mojo/public/interfaces/bindings/tests/BUILD.gn
index 18ea38b..57ab1ff 100644
--- a/mojo/public/interfaces/bindings/tests/BUILD.gn
+++ b/mojo/public/interfaces/bindings/tests/BUILD.gn
@@ -116,3 +116,13 @@ mojom("test_wtf_types_blink") {
for_blink = true
variant = "blink"
}
+
+mojom("test_variant") {
+ testonly = true
+
+ sources = [
+ "test_variant.mojom",
+ ]
+
+ variant = "variant_test"
+}
diff --git a/mojo/public/interfaces/bindings/tests/test_variant.mojom b/mojo/public/interfaces/bindings/tests/test_variant.mojom
new file mode 100644
index 0000000..318b6a7
--- /dev/null
+++ b/mojo/public/interfaces/bindings/tests/test_variant.mojom
@@ -0,0 +1,10 @@
+// Copyright 2016 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.
+
+module mojo.test;
+
+enum TestEnum {
+ VALUE1,
+ VALUE2
+};