VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/vboxdeps.cpp@ 101837

Last change on this file since 101837 was 101823, checked in by vboxsync, 16 months ago

libs/xpcom: Get rid of unused (except in a testcase related to that functionality) nsPipe3.cpp and nsStreamUtils.{cpp,h}, bugref:10545 [fix]

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/* The usual story: drag stuff from the libraries into the link. */
2
3
4#include <plstr.h>
5#include <prio.h>
6#include <nsDeque.h>
7#include <nsHashSets.h>
8#include <xptcall.h>
9#include <nsProxyRelease.h>
10#include "xpcom/proxy/src/nsProxyEventPrivate.h"
11#include "nsTraceRefcnt.h"
12#include "nsDebug.h"
13
14uintptr_t deps[] =
15{
16 (uintptr_t)PL_strncpy,
17 (uintptr_t)PL_strrchr,
18 (uintptr_t)PL_strncpyz,
19 (uintptr_t)PL_HashString,
20 (uintptr_t)PR_DestroyPollableEvent,
21 (uintptr_t)NS_ProxyRelease,
22 (uintptr_t)nsTraceRefcnt::LogRelease,
23 (uintptr_t)nsDebug::Assertion,
24 0
25};
26
27class foobardep : public nsXPTCStubBase
28{
29public:
30 NS_IMETHOD_(nsrefcnt) AddRef(void)
31 {
32 return 1;
33 }
34
35 NS_IMETHOD_(nsrefcnt) Release(void)
36 {
37 return 0;
38 }
39
40 NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
41 {
42 (void)info;
43 return 0;
44 }
45
46 // call this method and return result
47 NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
48 {
49 (void)methodIndex;
50 (void)info;
51 (void)params;
52 return 0;
53 }
54
55};
56
57
58
59void foodep(void)
60{
61 nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
62 a->Init(123);
63 nsDeque *b = new nsDeque((nsDequeFunctor*)0);
64
65 //nsXPTCStubBase
66 nsProxyEventObject *c = new nsProxyEventObject();
67 c->Release();
68
69 foobardep *d = new foobardep();
70 nsXPTCStubBase *e = d;
71 e->Release();
72}
73
74
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette