Searched refs:mustFail (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 279 mustFail(() -> { manager.unregisterService(null); }); in testInvalidCalls() method 280 mustFail(() -> { manager.registerService(null, -1, null); }); in testInvalidCalls() method 281 mustFail(() -> { manager.registerService(null, PROTOCOL, listener1); }); in testInvalidCalls() method 282 mustFail(() -> { manager.registerService(invalidService, PROTOCOL, listener1); }); in testInvalidCalls() method 283 mustFail(() -> { manager.registerService(validService, -1, listener1); }); in testInvalidCalls() method 284 mustFail(() -> { manager.registerService(validService, PROTOCOL, null); }); in testInvalidCalls() method 287 mustFail(() -> { manager.registerService(validService, PROTOCOL, listener1); }); in testInvalidCalls() method 295 mustFail(() -> { manager.stopServiceDiscovery(null); }); in testInvalidCalls() method 296 mustFail(() -> { manager.discoverServices(null, -1, null); }); in testInvalidCalls() method 297 mustFail(() -> { manager.discoverServices(null, PROTOCOL, listener2); }); in testInvalidCalls() method [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 311 mustFail(() -> { manager.requestNetwork(null, callback); }); in testArgumentValidation() method 312 mustFail(() -> { manager.requestNetwork(request, nullCallback); }); in testArgumentValidation() method 313 mustFail(() -> { manager.requestNetwork(request, callback, null); }); in testArgumentValidation() method 314 mustFail(() -> { manager.requestNetwork(request, callback, -1); }); in testArgumentValidation() method 315 mustFail(() -> { manager.requestNetwork(request, nullIntent); }); in testArgumentValidation() method 317 mustFail(() -> { manager.registerNetworkCallback(null, callback, handler); }); in testArgumentValidation() method 318 mustFail(() -> { manager.registerNetworkCallback(request, null, handler); }); in testArgumentValidation() method 319 mustFail(() -> { manager.registerNetworkCallback(request, callback, null); }); in testArgumentValidation() method 320 mustFail(() -> { manager.registerNetworkCallback(request, nullIntent); }); in testArgumentValidation() method 322 mustFail(() -> { manager.registerDefaultNetworkCallback(null, handler); }); in testArgumentValidation() method [all …]
|