summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/gtest/PTestUniquePtrIPC.ipdl
blob: 2ef3d9cb598424b00ae271343f758aaaa4e9fd30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using std::string from "string";

// std::string is an arbitrary simple type declared inside a namespace,
// to test that that will work when used in a UniquePtr inside a union.

namespace mozilla {
namespace _ipdltest {

struct DummyStruct {
  string x;
};

union DummyUnion {
  UniquePtr<string>;
  int;
};

[ChildProc=any, ChildImpl=virtual, ParentImpl=virtual]
protocol PTestUniquePtrIPC {
child:
  async TestMessage(UniquePtr<string> a1, UniquePtr<DummyStruct> a2,
                    DummyStruct a3, UniquePtr<string> a4, DummyUnion a5);
  async TestSendReference(UniquePtr<DummyStruct> a);
};

}  // namespace _ipdltest
}  // namespace mozilla