no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / js / xpconnect / tests / components / native / xpctest_private.h
blobd2d12d4ef823e33ce40872d7123cbe4b97b7e970
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 /* local header for xpconnect tests components */
9 #ifndef xpctest_private_h___
10 #define xpctest_private_h___
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/Attributes.h"
19 #include "mozilla/ModuleUtils.h"
21 nsresult xpcTestRegisterComponents();
23 class xpcTestObjectReadOnly final : public nsIXPCTestObjectReadOnly {
24 public:
25 NS_DECL_ISUPPORTS
26 NS_DECL_NSIXPCTESTOBJECTREADONLY
27 xpcTestObjectReadOnly();
29 private:
30 ~xpcTestObjectReadOnly() = default;
32 bool boolProperty;
33 int16_t shortProperty;
34 int32_t longProperty;
35 float floatProperty;
36 char charProperty;
37 PRTime timeProperty;
40 class xpcTestObjectReadWrite final : public nsIXPCTestObjectReadWrite {
41 public:
42 NS_DECL_ISUPPORTS
43 NS_DECL_NSIXPCTESTOBJECTREADWRITE
45 xpcTestObjectReadWrite();
47 private:
48 ~xpcTestObjectReadWrite();
50 bool boolProperty;
51 int16_t shortProperty;
52 int32_t longProperty;
53 float floatProperty;
54 char charProperty;
55 char* stringProperty;
56 PRTime timeProperty;
59 class nsXPCTestParams final : public nsIXPCTestParams {
60 public:
61 NS_DECL_ISUPPORTS
62 NS_DECL_NSIXPCTESTPARAMS
64 nsXPCTestParams() = default;
66 private:
67 ~nsXPCTestParams() = default;
70 class nsXPCTestESMReturnCodeParent final : public nsIXPCTestReturnCodeParent {
71 public:
72 NS_DECL_ISUPPORTS
73 NS_DECL_NSIXPCTESTRETURNCODEPARENT
75 nsXPCTestESMReturnCodeParent() = default;
77 private:
78 ~nsXPCTestESMReturnCodeParent() = default;
81 class xpcTestCEnums final : public nsIXPCTestCEnums {
82 public:
83 NS_DECL_ISUPPORTS
84 NS_DECL_NSIXPCTESTCENUMS
86 xpcTestCEnums();
88 private:
89 ~xpcTestCEnums() = default;
91 #endif /* xpctest_private_h___ */