tor-browser

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

mozISandboxTest.idl (952B)


      1 /* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "nsISupports.idl"
      8 
      9 // This interface is only for testing Sandbox.
     10 
     11 [scriptable, builtinclass, uuid(2306c118-3544-4674-9222-670b88dc07a9)]
     12 interface mozISandboxTest : nsISupports
     13 {
     14  void startTests(in Array<ACString> aProcessesList);
     15  void finishTests();
     16 };
     17 
     18 %{ C++
     19 
     20 #if defined(MOZ_SANDBOX) && defined(MOZ_DEBUG) && defined(ENABLE_TESTS)
     21 #define MOZ_SANDBOX_TEST_CID \
     22  {0x989dda27, 0xb144, 0x45f9, {0x90, 0x39, 0x69, 0x74, 0x4e, 0xc6, dd0xd9, 0x12}}
     23 #define MOZ_SANDBOX_TEST_CONTRACTID \
     24    "@mozilla.org/sandbox/sandbox-test;1"
     25 #else
     26 #error "This file should not be used outside of debug with tests"
     27 #endif
     28 %}