FileDocCategorySizeDatePackage
ParentalControlTest.javaAPI DocAndroid 1.5 API1948Wed May 06 22:42:02 BST 2009com.android.unit_tests

ParentalControlTest

public class ParentalControlTest extends android.test.AndroidTestCase

Fields Summary
private boolean
mOnResultCalled
Constructors Summary
Methods Summary
public voidtestParentalControlCallback()

        synchronized (ParentalControlTest.class) {
            ParentalControl.getParentalControlState(new Callback(), null);
            try {
                long start = SystemClock.uptimeMillis();
                ParentalControlTest.class.wait(20 * 1000);
                long end = SystemClock.uptimeMillis();
                Log.d("AndroidTests", "ParentalControlTest callback took " + (end-start) + " ms.");
            } catch (InterruptedException ex) {
            }
        }

        Assert.assertTrue(mOnResultCalled);