*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,59 @@
#!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 = .
JAVA_OR_NSJVM=1
include $(DEPTH)/config/autoconf.mk
XPIDL_MODULE = StressComponent1
XPIDLSRCS = iStressComponent1.idl
JAVA_SRC = \
StressComponent1.java
JAVAI_SRC = \
iStressComponent1.java
include $(topsrcdir)/config/rules.mk
export::
$(JDKHOME)/bin/javac -classpath $(DEPTH)/dist/classes -d $(DEPTH)/dist/classes $(JAVAI_SRC)
StressComponent1.jar.comp: manifest StressComponent1.class
$(JDKHOME)/bin/jar cvfm StressComponent1.jar.comp manifest *.class
StressComponent1.class:
$(JDKHOME)/bin/javac -classpath $(DEPTH)/dist/classes $(JAVA_SRC)
install-component: StressComponent1.jar.comp StressComponent1.jar.info
cp -f StressComponent1.jar* $(DIST)/bin/components
clobber::
rm -f *.class *.jar.comp
rm -f $(DIST)/bin/components/StressComponent1.jar.*
clobber_all:: clobber
install:: install-component

View File

@@ -0,0 +1,2 @@
a8a301e6-7747-40b2-ab97-bacc083ebbea
@mozilla/blackwood/blackconnect/test/stress/StressComponent1;1

View File

@@ -0,0 +1,68 @@
/* -*- Mode: Java; 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
*/
import org.mozilla.xpcom.*;
import java.lang.reflect.*;
public class StressComponent1 implements iStressComponent1 {
public StressComponent1() {
System.out.println("DEbug:avm:StressComponent1 constructor");
}
public void reCall(iStressComponent2 st2) {
System.out.println("DEbug:avm:StressComponent1 reCall");
st2.increase();
}
public Object queryInterface(IID iid) {
System.out.println("DEbug:avm:StressComponent1::queryInterface iid="+iid);
if ( iid.equals(nsISupports.IID)
|| iid.equals(iStressComponent1.IID)) {
return this;
} else {
return null;
}
}
static {
try {
Class iStressComponent2Class =
Class.forName("org.mozilla.xpcom.iStressComponent2");
InterfaceRegistry.register(iStressComponent2Class);
} catch (Exception e) {
e.printStackTrace();
} catch (Error e) {
e.printStackTrace();
}
}
}

View File

@@ -0,0 +1,48 @@
/* -*- 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"
#include "iStressComponent2.idl"
[scriptable, uuid(dd0ac815-c529-4700-8b51-e1e86a8c95e3)]
interface iStressComponent1 : nsISupports
{
void reCall(in iStressComponent2 st2);
};
%{ C++
#define STRESSCOMPONENT1_CID \
{ /* a8a301e6-7747-40b2-ab97-bacc083ebbea */ \
0xa8a301e6, \
0x7747, \
0x40b2, \
{0xab, 0x97, 0xba, 0xcc, 0x08, 0x3e, 0xbb, 0xea} \
}
#define STRESSCOMPONENT1_PROGID "@mozilla/blackwood/blackconnect/test/stress/StressComponent1;1"
%}

View File

@@ -0,0 +1,30 @@
/*
* ************* DO NOT EDIT THIS FILE ***********
*
* This file was automatically generated from iStressComponent1.idl.
*/
package org.mozilla.xpcom;
/**
* Interface iStressComponent1
*
* IID: 0xdd0ac815-c529-4700-8b51-e1e86a8c95e3
*/
public interface iStressComponent1 extends nsISupports
{
public static final IID IID =
new IID("dd0ac815-c529-4700-8b51-e1e86a8c95e3");
/* void reCall (in iStressComponent2 st2); */
public void reCall(iStressComponent2 st2);
}
/*
* end
*/

View File

@@ -0,0 +1 @@
Component-Class: StressComponent1