1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/xpconnect/tests/components/native/xpctest_private.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,64 @@ 1.4 +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +/* local header for xpconnect tests components */ 1.11 + 1.12 +#ifndef xpctest_private_h___ 1.13 +#define xpctest_private_h___ 1.14 + 1.15 +#include "nsISupports.h" 1.16 +#include "nsMemory.h" 1.17 +#include "nsStringGlue.h" 1.18 +#include "xpctest_attributes.h" 1.19 +#include "xpctest_params.h" 1.20 +#include "mozilla/Attributes.h" 1.21 + 1.22 +class xpcTestObjectReadOnly MOZ_FINAL : public nsIXPCTestObjectReadOnly { 1.23 + public: 1.24 + NS_DECL_ISUPPORTS 1.25 + NS_DECL_NSIXPCTESTOBJECTREADONLY 1.26 + xpcTestObjectReadOnly(); 1.27 + 1.28 + private: 1.29 + bool boolProperty; 1.30 + int16_t shortProperty; 1.31 + int32_t longProperty; 1.32 + float floatProperty; 1.33 + char charProperty; 1.34 + PRTime timeProperty; 1.35 +}; 1.36 + 1.37 +class xpcTestObjectReadWrite MOZ_FINAL : public nsIXPCTestObjectReadWrite { 1.38 + public: 1.39 + NS_DECL_ISUPPORTS 1.40 + NS_DECL_NSIXPCTESTOBJECTREADWRITE 1.41 + 1.42 + xpcTestObjectReadWrite(); 1.43 + ~xpcTestObjectReadWrite(); 1.44 + 1.45 + private: 1.46 + bool boolProperty; 1.47 + int16_t shortProperty; 1.48 + int32_t longProperty; 1.49 + float floatProperty; 1.50 + char charProperty; 1.51 + char *stringProperty; 1.52 + PRTime timeProperty; 1.53 +}; 1.54 + 1.55 +class nsXPCTestParams MOZ_FINAL : public nsIXPCTestParams 1.56 +{ 1.57 +public: 1.58 + NS_DECL_ISUPPORTS 1.59 + NS_DECL_NSIXPCTESTPARAMS 1.60 + 1.61 + nsXPCTestParams(); 1.62 + 1.63 +private: 1.64 + ~nsXPCTestParams(); 1.65 +}; 1.66 + 1.67 +#endif /* xpctest_private_h___ */