home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / xpcom / tests / TestFactory.h < prev   
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.5 KB  |  47 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /*
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef __TestFactory_h
  20. #define __TestFactory_h
  21.  
  22. #include "nsIFactory.h"
  23.  
  24. // {8B330F20-A24A-11d1-A961-00805F8A7AC4}
  25. #define NS_TESTFACTORY_CID    \
  26. { 0x8b330f20, 0xa24a, 0x11d1, \
  27.   { 0xa9, 0x61, 0x0, 0x80, 0x5f, 0x8a, 0x7a, 0xc4 } }
  28.  
  29. // {8B330F21-A24A-11d1-A961-00805F8A7AC4}
  30. #define NS_ITESTCLASS_IID     \
  31. { 0x8b330f21, 0xa24a, 0x11d1, \
  32.   { 0xa9, 0x61, 0x0, 0x80, 0x5f, 0x8a, 0x7a, 0xc4 } }
  33.  
  34. // {8B330F22-A24A-11d1-A961-00805F8A7AC4}
  35. #define NS_TESTLOADEDFACTORY_CID \
  36. { 0x8b330f22, 0xa24a, 0x11d1,    \
  37.   { 0xa9, 0x61, 0x0, 0x80, 0x5f, 0x8a, 0x7a, 0xc4 } }
  38.  
  39. class ITestClass: public nsISupports {
  40. public:
  41.   virtual void Test() = 0;
  42. };
  43.  
  44. extern "C" void RegisterTestFactories();
  45.  
  46. #endif
  47.