tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PIPDLUnitTest.ipdl (949B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2  * License, v. 2.0. If a copy of the MPL was not distributed with this
      3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 using mozilla::dom::NativeThreadId from "mozilla/dom/NativeThreadId.h";
      6 [MoveOnly] using class mozilla::ipc::ScopedPort from "mozilla/ipc/ScopedPort.h";
      7 using struct nsID from "nsID.h";
      8 
      9 namespace mozilla {
     10 namespace _ipdltest {
     11 
     12 // IPDL representation of GTest's TestPartResult type.
     13 struct TestPartResult {
     14   bool failed;
     15   bool fatal;
     16   nsCString filename;
     17   int32_t lineNumber;
     18   nsCString summary;
     19   nsCString message;
     20 };
     21 
     22 // Primary actor for the IPDLUnitTest process and thread.
     23 [NeedsOtherPid, ChildProc=any]
     24 async protocol PIPDLUnitTest {
     25  child:
     26   async Start(nsCString name, ScopedPort port, nsID channelId);
     27 
     28  parent:
     29   async Report(TestPartResult result);
     30   async Complete();
     31 };
     32 
     33 }  // namespace _ipdltest
     34 }  // namespace mozilla