Skip to content

Commit

Permalink
Bug 1456942, part 6 - Add a test for ByteBuf. r=Nika
Browse files Browse the repository at this point in the history
ByteBuf is a new IPDL built in type, so I wrote a very basic test for
it, based on shmem.ipdl. It was added in bug 1379680.

MozReview-Commit-ID: 4tbnljpUqCh
  • Loading branch information
amccreight committed Apr 25, 2018
1 parent 9f84183 commit cc7491e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ipc/ipdl/test/ipdl/ok/bytebuf.ipdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
union Foo {
int;
ByteBuf;
};

intr protocol bytebuf {
parent:
async Msg(ByteBuf s, Foo f);
sync SyncMsg(ByteBuf s, Foo f)
returns (ByteBuf t, Foo g);
intr InterruptMsg(ByteBuf s, Foo f)
returns (ByteBuf t, Foo g);
};
2 changes: 2 additions & 0 deletions ipc/ipdl/test/ipdl/sync-messages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
[intrProtocol::InterruptMsg]
[shmem::SyncMsg]
[shmem::InterruptMsg]
[bytebuf::SyncMsg]
[bytebuf::InterruptMsg]
[syncProtocol::SyncMsg]
[messageVerify::__delete__]
[messageVerify::msg3]
Expand Down

0 comments on commit cc7491e

Please sign in to comment.