*not part of the build*

fix for 80938
a = avm@sparc.spb.su
    ovk@sparc.spb.su
    sva@sparc.spb.su

Tests for blackConnect


git-svn-id: svn://10.0.0.236/trunk@95860 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
idk%eng.sun.com
2001-05-24 05:22:13 +00:00
parent d74ff774aa
commit 6e4a0fdecc
214 changed files with 17250 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=../../../../../../..
topsrcdir = $(DEPTH)
srcdir = .
VPATH = .
include $(DEPTH)/config/autoconf.mk
MODULE = StressComponent2
LIBRARY_NAME = $(MODULE)
XPIDL_MODULE = $(MODULE)
IS_COMPONENT = 1
CPPSRCS = \
StressComponent2.cpp \
StressComponent2Factory.cpp \
$(NULL)
XPIDLSRCS = iStressComponent2.idl
JAVAI_SRC = iStressComponent2.java
DSO_LDOPTS += \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \
$(NULL)
include $(topsrcdir)/config/rules.mk
export::
$(JDKHOME)/bin/javac -classpath .:$(DIST)/classes -d $(DIST)/classes $(JAVAI_SRC)

View File

@@ -0,0 +1,77 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
Client QA Team, St. Petersburg, Russia
*/
#include "plstr.h"
#include "stdio.h"
#include "nsIComponentManager.h"
#include "StressComponent2.h"
#include "iStressComponent1.h"
#include "nsMemory.h"
#include "prthread.h"
#include <sys/stat.h>
#include <stdlib.h>
#include "nsID.h"
#define MAX_COUNT 500
int count = 0;
StressComponent2Impl::StressComponent2Impl()
{
NS_INIT_REFCNT();
printf("StressComponent2Impl::StressComponent2Imp\n");
Increase();
printf("PASSED:Stress test 1 passed. Corrtly return from 500 recursive invokations\n");
}
StressComponent2Impl::~StressComponent2Impl()
{
}
NS_IMPL_ISUPPORTS1(StressComponent2Impl, iStressComponent2);
NS_IMETHODIMP StressComponent2Impl::Increase(){
count++;
if(count >MAX_COUNT) return;
printf("####StressComponent2Impl::Increase %d\n",count);
iStressComponent1* st1;
nsresult rv = nsComponentManager::CreateInstance(STRESSCOMPONENT1_PROGID,
nsnull,
NS_GET_IID(iStressComponent1),
(void**)&st1);
if(NS_FAILED(rv)) {
printf("StressComponent2Impl:Create instance failed from %s!!!",STRESSCOMPONENT1_PROGID);
return rv;
}
rv = st1->ReCall(this);
NS_RELEASE(st1);
return rv;
}

View File

@@ -0,0 +1,39 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
Client QA Team, St. Petersburg, Russia
*/
#include "iStressComponent2.h"
class StressComponent2Impl : public iStressComponent2
{
public:
StressComponent2Impl();
virtual ~StressComponent2Impl();
NS_DECL_ISUPPORTS
NS_DECL_ISTRESSCOMPONENT2
};

View File

@@ -0,0 +1,46 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
Client QA Team, St. Petersburg, Russia
*/
#include "nsIGenericFactory.h"
#include "StressComponent2.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(StressComponent2Impl)
static nsModuleComponentInfo components[] =
{
{ "Stress Test Component 2", STRESSCOMPONENT2_CID, STRESSCOMPONENT2_PROGID, StressComponent2ImplConstructor,
NULL /* NULL if you dont need one */,
NULL /* NULL if you dont need one */
}
};
NS_IMPL_NSGETMODULE("StressComponent2Factory", components)

View File

@@ -0,0 +1,47 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
Client QA Team, St. Petersburg, Russia
*/
#include "nsISupports.idl"
[scriptable, uuid(59b94c87-b32d-4881-9b86-f29649af576e)]
interface iStressComponent2 : nsISupports
{
void increase();
};
%{ C++
#define STRESSCOMPONENT2_CID \
{ /* 59b94c87-b32d-4881-9b86-f29649af576e */ \
0x59b94c87, \
0xb32d, \
0x4881, \
{0x9b, 0x86, 0xf2, 0x96, 0x49, 0xaf, 0x57, 0x6e} \
}
#define STRESSCOMPONENT2_PROGID "@mozilla/blackwood/blackconnect/test/stress/StressComponent2;1"
%}

View File

@@ -0,0 +1,30 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from iStressComponent2.idl.
*/
package org.mozilla.xpcom;
/**
* Interface iStressComponent2
*
* IID: 0x59b94c87-b32d-4881-9b86-f29649af576e
*/
public interface iStressComponent2 extends nsISupports
{
public static final IID IID =
new IID("59b94c87-b32d-4881-9b86-f29649af576e");
/* void increase (); */
public void increase();
}
/*
* end
*/