tor-browser

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

xpctest_private.h (2007B)


      1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 *
      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 /* local header for xpconnect tests components */
      8 
      9 #ifndef xpctest_private_h___
     10 #define xpctest_private_h___
     11 
     12 #include "nsISupports.h"
     13 #include "nsString.h"
     14 #include "xpctest_attributes.h"
     15 #include "xpctest_params.h"
     16 #include "xpctest_returncode.h"
     17 #include "xpctest_cenums.h"
     18 #include "mozilla/ModuleUtils.h"
     19 
     20 nsresult xpcTestRegisterComponents();
     21 
     22 class xpcTestObjectReadOnly final : public nsIXPCTestObjectReadOnly {
     23 public:
     24  NS_DECL_ISUPPORTS
     25  NS_DECL_NSIXPCTESTOBJECTREADONLY
     26  xpcTestObjectReadOnly();
     27 
     28 private:
     29  ~xpcTestObjectReadOnly() = default;
     30 
     31  bool boolProperty;
     32  int16_t shortProperty;
     33  int32_t longProperty;
     34  float floatProperty;
     35  char charProperty;
     36  PRTime timeProperty;
     37 };
     38 
     39 class xpcTestObjectReadWrite final : public nsIXPCTestObjectReadWrite {
     40 public:
     41  NS_DECL_ISUPPORTS
     42  NS_DECL_NSIXPCTESTOBJECTREADWRITE
     43 
     44  xpcTestObjectReadWrite();
     45 
     46 private:
     47  ~xpcTestObjectReadWrite();
     48 
     49  bool boolProperty;
     50  int16_t shortProperty;
     51  int32_t longProperty;
     52  float floatProperty;
     53  char charProperty;
     54  char* stringProperty;
     55  PRTime timeProperty;
     56 };
     57 
     58 class nsXPCTestParams final : public nsIXPCTestParams {
     59 public:
     60  NS_DECL_ISUPPORTS
     61  NS_DECL_NSIXPCTESTPARAMS
     62 
     63  nsXPCTestParams() = default;
     64 
     65 private:
     66  ~nsXPCTestParams() = default;
     67 };
     68 
     69 class nsXPCTestESMReturnCodeParent final : public nsIXPCTestReturnCodeParent {
     70 public:
     71  NS_DECL_ISUPPORTS
     72  NS_DECL_NSIXPCTESTRETURNCODEPARENT
     73 
     74  nsXPCTestESMReturnCodeParent() = default;
     75 
     76 private:
     77  ~nsXPCTestESMReturnCodeParent() = default;
     78 };
     79 
     80 class xpcTestCEnums final : public nsIXPCTestCEnums {
     81 public:
     82  NS_DECL_ISUPPORTS
     83  NS_DECL_NSIXPCTESTCENUMS
     84 
     85  xpcTestCEnums();
     86 
     87 private:
     88  ~xpcTestCEnums() = default;
     89 };
     90 #endif /* xpctest_private_h___ */