Lines Matching refs:xLBT
268 static bool testAny(Type* typ, Object* value, XBridgeTest* xLBT )
276 Any any2 = xLBT->transportAny(any);
288 static bool performAnyTest(XBridgeTest* xLBT, TestDataElements* data)
291 bReturn = testAny( 0, __box(data->Byte), xLBT ) && bReturn;
292 bReturn = testAny( 0, __box(data->Short), xLBT ) && bReturn;
293 bReturn = testAny( 0, __box(data->UShort), xLBT ) && bReturn;
294 bReturn = testAny( 0, __box(data->Long), xLBT ) && bReturn;
295 bReturn = testAny( 0, __box(data->ULong), xLBT ) && bReturn;
296 bReturn = testAny( 0, __box(data->Hyper), xLBT ) && bReturn;
297 bReturn = testAny( 0, __box(data->UHyper), xLBT ) && bReturn;
298 bReturn = testAny( 0, __box(data->Float), xLBT ) && bReturn;
299 bReturn = testAny( 0, __box(data->Double),xLBT ) && bReturn;
300 bReturn = testAny( 0, __box(data->Enum), xLBT ) && bReturn;
301 bReturn = testAny( 0, data->String,xLBT ) && bReturn;
302 bReturn = testAny(__typeof(XWeak), data->Interface,xLBT ) && bReturn;
303 bReturn = testAny(0, data, xLBT ) && bReturn;
307 Any a2 = xLBT->transportAny( a1 );
313 Any a2 = xLBT->transportAny(a1);
319 static bool performSequenceOfCallTest(XBridgeTest* xLBT)
329 xLBT->callOneway(nGlobalIndex, nWaitTimeSpanMUSec);
334 xLBT->call(nGlobalIndex, nWaitTimeSpanMUSec);
337 return xLBT->sequenceOfCallTestPassed();
343 static bool performRecursiveCallTest(XBridgeTest* xLBT)
345 xLBT->startRecursiveCall(new ORecursiveCall(), 50);
350 static bool performQueryForUnknownType(XBridgeTest* xLBT)
356 __try_cast<foo::MyInterface*>(xLBT);
367 static bool performTest(XBridgeTest* xLBT)
369 check( xLBT != 0, "### no test interface!" );
371 if (xLBT != 0)
424 xLBT->setValues(
432 xLBT->getValues(
441 TestDataElements* aSV2ret = xLBT->setValues2(
460 TestDataElements* aGVret = xLBT->getValues(
470 xLBT->Bool = aRet->Bool;
471 xLBT->Char = aRet->Char;
472 xLBT->Byte = aRet->Byte;
473 xLBT->Short = aRet->Short;
474 xLBT->UShort = aRet->UShort;
475 xLBT->Long = aRet->Long;
476 xLBT->ULong = aRet->ULong;
477 xLBT->Hyper = aRet->Hyper;
478 xLBT->UHyper = aRet->UHyper;
479 xLBT->Float = aRet->Float;
480 xLBT->Double = aRet->Double;
481 xLBT->Enum = aRet->Enum;
482 xLBT->String = aRet->String;
483 xLBT->Interface = aRet->Interface;
484 xLBT->Any = aRet->Any;
485 xLBT->Sequence = aRet->Sequence;
486 xLBT->Struct = aRet2;
491 aRet->Hyper = xLBT->Hyper;
492 aRet->UHyper = xLBT->UHyper;
493 aRet->Float = xLBT->Float;
494 aRet->Double = xLBT->Double;
495 aRet->Byte = xLBT->Byte;
496 aRet->Char = xLBT->Char;
497 aRet->Bool = xLBT->Bool;
498 aRet->Short = xLBT->Short;
499 aRet->UShort = xLBT->UShort;
500 aRet->Long = xLBT->Long;
501 aRet->ULong = xLBT->ULong;
502 aRet->Enum = xLBT->Enum;
503 aRet->String = xLBT->String;
504 aRet->Interface = xLBT->Interface;
505 aRet->Any = xLBT->Any;
506 aRet->Sequence = xLBT->Sequence;
507 aRet2 = xLBT->Struct;
511 bRet = check(performSequenceTest(xLBT), "sequence test") && bRet;
514 bRet = check( performAnyTest( xLBT , aData ) , "any test" ) && bRet;
517 bRet = check( performSequenceOfCallTest( xLBT ) , "sequence of call test" ) && bRet;
520 bRet = check( performRecursiveCallTest( xLBT ) , "recursive test" ) && bRet;
525 xLBT->Interface = 0;
526 aRet->Interface = xLBT->Interface;
812 static bool testObjectMethodsImplemention(XBridgeTest* xLBT)
816 XBridgeTestBase* xBase = dynamic_cast<XBridgeTestBase*>(xLBT);
820 ret = xLBT->Equals(obj) == false;
821 ret = xLBT->Equals(xLBT) && ret;
823 ret = Object::Equals(xLBT, xBase) && ret;
826 int nHash = xLBT->GetHashCode();
831 String* s = xLBT->ToString();
837 static bool raiseOnewayException(XBridgeTest* xLBT)
845 xLBT->raiseRuntimeExceptionOneway(sCompare, xLBT->Interface );
849 bReturn = ( xLBT->Interface == e->Context );
855 static bool raiseException(XBridgeTest* xLBT )
864 xLBT->raiseException(
865 5, Constants::STRING_TEST_CONSTANT, xLBT->Interface );
870 aExc->Context == xLBT->Interface)
881 xLBT->RuntimeException = 0;
886 if (rExc->Context == xLBT->Interface )
896 xLBT->RuntimeException = (int) 0xcafebabe;
901 if (rExc->Context == xLBT->Interface)
915 static private void perform_test( XBridgeTest* xLBT )
918 bRet = check( performTest( xLBT ), "standard test" ) && bRet;
919 bRet = check( raiseException( xLBT ) , "exception test" )&& bRet;
920 bRet = check( raiseOnewayException( xLBT ), "oneway exception test" ) && bRet;
921 bRet = check( testObjectMethodsImplemention(xLBT), "object methods test") && bRet;
922 bRet = performQueryForUnknownType( xLBT ) && bRet;