UnitTestpublic class UnitTest extends Thread
Fields Summary |
---|
public String | name | public int | result | private ScriptField_ListAllocs_s.Item | mItem | private RSTestCore | mRSTC | private boolean | msgHandled | protected android.content.Context | mCtx | public static final int | RS_MSG_TEST_PASSED | public static final int | RS_MSG_TEST_FAILED | private static int | numTests | public int | testID | protected android.renderscript.RenderScript.RSMessageHandler | mRsMessage |
Constructors Summary |
---|
protected UnitTest(RSTestCore rstc, String n, int initResult, android.content.Context ctx)
super();
mRSTC = rstc;
name = n;
msgHandled = false;
mCtx = ctx;
result = initResult;
testID = numTests++;
| protected UnitTest(RSTestCore rstc, String n, android.content.Context ctx)
this(rstc, n, 0, ctx);
| protected UnitTest(RSTestCore rstc, android.content.Context ctx)
this (rstc, "<Unknown>", ctx);
| protected UnitTest(android.content.Context ctx)
this (null, ctx);
|
Methods Summary |
---|
public void | run()
/* This method needs to be implemented for each subclass */
if (mRSTC != null) {
mRSTC.refreshTestResults();
}
| public void | setItem(ScriptField_ListAllocs_s.Item item)
mItem = item;
| public void | waitForMessage()
while (!msgHandled) {
yield();
}
|
|