js/xpconnect/tests/components/native/xpctest_private.h

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:939ee65cd33a
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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 "nsMemory.h"
14 #include "nsStringGlue.h"
15 #include "xpctest_attributes.h"
16 #include "xpctest_params.h"
17 #include "mozilla/Attributes.h"
18
19 class xpcTestObjectReadOnly MOZ_FINAL : public nsIXPCTestObjectReadOnly {
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSIXPCTESTOBJECTREADONLY
23 xpcTestObjectReadOnly();
24
25 private:
26 bool boolProperty;
27 int16_t shortProperty;
28 int32_t longProperty;
29 float floatProperty;
30 char charProperty;
31 PRTime timeProperty;
32 };
33
34 class xpcTestObjectReadWrite MOZ_FINAL : public nsIXPCTestObjectReadWrite {
35 public:
36 NS_DECL_ISUPPORTS
37 NS_DECL_NSIXPCTESTOBJECTREADWRITE
38
39 xpcTestObjectReadWrite();
40 ~xpcTestObjectReadWrite();
41
42 private:
43 bool boolProperty;
44 int16_t shortProperty;
45 int32_t longProperty;
46 float floatProperty;
47 char charProperty;
48 char *stringProperty;
49 PRTime timeProperty;
50 };
51
52 class nsXPCTestParams MOZ_FINAL : public nsIXPCTestParams
53 {
54 public:
55 NS_DECL_ISUPPORTS
56 NS_DECL_NSIXPCTESTPARAMS
57
58 nsXPCTestParams();
59
60 private:
61 ~nsXPCTestParams();
62 };
63
64 #endif /* xpctest_private_h___ */

mercurial