Merge "Maybe fix build."
This commit is contained in:
committed by
Android (Google) Code Review
commit
53897adeb4
@@ -46,7 +46,7 @@ public class VibratorServicePermissionTest extends TestCase {
|
||||
*/
|
||||
public void testVibrate() throws RemoteException {
|
||||
try {
|
||||
mVibratorService.vibrate(2000, new Binder());
|
||||
mVibratorService.vibrate(null, 2000, new Binder());
|
||||
fail("vibrate did not throw SecurityException as expected");
|
||||
} catch (SecurityException e) {
|
||||
// expected
|
||||
@@ -62,7 +62,7 @@ public class VibratorServicePermissionTest extends TestCase {
|
||||
*/
|
||||
public void testVibratePattern() throws RemoteException {
|
||||
try {
|
||||
mVibratorService.vibratePattern(new long[] {0}, 0, new Binder());
|
||||
mVibratorService.vibratePattern(null, new long[] {0}, 0, new Binder());
|
||||
fail("vibratePattern did not throw SecurityException as expected");
|
||||
} catch (SecurityException e) {
|
||||
// expected
|
||||
|
||||
Reference in New Issue
Block a user