Methods Summary |
---|
protected void | setUp()
super.setUp();
Context context = getInstrumentation().getTargetContext();
mTestUtils = new BluetoothTestUtils(context, TAG, OUTPUT_FILE);
|
protected void | tearDown()
super.tearDown();
mTestUtils.close();
|
public void | testMiddleNoToggle()Test method used in the middle iterations of the test to check if
bluetooth is on. Does not toggle bluetooth after the check. Assumes that
bluetooth has been turned on by {@code #testStart()}
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
assertTrue(adapter.isEnabled());
|
public void | testMiddleToggle()Test method used in the middle iterations of the test to check if
bluetooth is on. Toggles bluetooth after the check. Assumes that
bluetooth has been turned on by {@code #testStart()}
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
assertTrue(adapter.isEnabled());
mTestUtils.disable(adapter);
mTestUtils.enable(adapter);
|
public void | testStart()Test method used to start the test by turning bluetooth on.
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
mTestUtils.enable(adapter);
|
public void | testStop()Test method used in the stop the test by turning bluetooth off. Assumes
that bluetooth has been turned on by {@code #testStart()}
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
assertTrue(adapter.isEnabled());
mTestUtils.disable(adapter);
|