FileDocCategorySizeDatePackage
DebugTest.javaAPI DocAndroid 5.1 API1976Thu Mar 12 22:22:12 GMT 2015com.android.internal.os

DebugTest

public class DebugTest extends TestCase

Fields Summary
private static final String
EXPECTED_GET_CALLER
private static final String
EXPECTED_GET_CALLERS
Constructors Summary
Methods Summary
private java.lang.StringcallDepth0()

return
String consisting of the caller to this method.


                  
       
        return Debug.getCaller();
    
private java.lang.StringcallDepth1()

        return callDepth2();
    
private java.lang.StringcallDepth2()

        return callDepth3();
    
private java.lang.StringcallDepth3()

        return callDepth4();
    
private java.lang.StringcallDepth4()

return
String consisting of the callers to this method.

        return Debug.getCallers(3);
    
public voidtestGetCaller()

        assertTrue(callDepth0().matches(EXPECTED_GET_CALLER));
    
public voidtestGetCallers()

        assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS));