Bug 1456942, part 4 - Add a new test for |using|. r=Nika
authorAndrew McCreight <continuation@gmail.com>
Wed, 25 Apr 2018 11:25:24 -0700
changeset 472451 1999835b9144d57a44e5969e76cf885f51eba6e1
parent 472450 2edbbd0cd6679e6101e369e664d7c6ee870d93f8
child 472452 4cd650ae1a7a2171d7597bf22bdee832b786ddfa
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNika
bugs1456942, 1443954
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1456942, part 4 - Add a new test for |using|. r=Nika Bug 1443954 added some new syntax to using, but I noticed that there was not very much existing test coverage, so I wrote a new test that covers all of the possible cases. MozReview-Commit-ID: JRgHCtXHDLZ
ipc/ipdl/test/ipdl/ok/basicUsing.ipdl
new file mode 100644
--- /dev/null
+++ b/ipc/ipdl/test/ipdl/ok/basicUsing.ipdl
@@ -0,0 +1,22 @@
+using SomeType from "SomeFile.h";
+using class SomeClass from "SomeFile.h";
+using struct SomeStruct from "SomeFile.h";
+
+using refcounted SomeRefcountedType from "SomeFile.h";
+using refcounted class SomeRefcountedClass from "SomeFile.h";
+using refcounted struct SomeRefcountedStruct from "SomeFile.h";
+
+union SomeUnion
+{
+  SomeType;
+  SomeClass;
+  SomeStruct;
+  SomeRefcountedType;
+  SomeRefcountedClass;
+  SomeRefcountedStruct;
+};
+
+protocol basicUsing {
+child:
+    async Msg(SomeUnion foo);
+};