diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2013-11-04 17:44:09 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2013-11-25 17:25:45 +0900 |
commit | a9626c1c956f51e7b4cb783d70b75abc3b180a00 (patch) | |
tree | 1c1bef2ecca682d5d55176b3956bf4c611febbbf /services/tests/servicestests | |
parent | 132fe8d27dcb45b363dff3eeb347ff2f4cf60901 (diff) | |
download | frameworks_base-a9626c1c956f51e7b4cb783d70b75abc3b180a00.zip frameworks_base-a9626c1c956f51e7b4cb783d70b75abc3b180a00.tar.gz frameworks_base-a9626c1c956f51e7b4cb783d70b75abc3b180a00.tar.bz2 |
Minor cleanups to NetdCallbackReceiver.onEvent.
- Clean up identical error messages.
- Fix the array length check for InterfaceAddressChange.
[Cherry-pick of 59be800e7fe81842aa8c77b91319f58ab165983d]
Bug: 9180552
Change-Id: Id871f481445b530c3ad749725f1548df0e3a1228
Diffstat (limited to 'services/tests/servicestests')
-rw-r--r-- | services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java b/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java index 56dd7c4..30d4eff 100644 --- a/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java +++ b/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java @@ -166,6 +166,9 @@ public class NetworkManagementServiceTest extends AndroidTestCase { sendMessage("614 Address removed 2001:db8::1/64 wlan0 1 0"); expectSoon(observer).addressRemoved("2001:db8::1/64", "wlan0", 1, 0); + sendMessage("614 Address removed 2001:db8::1/64 wlan0 1"); + // Not enough arguments. + sendMessage("666 Address added 2001:db8::1/64 wlan0 1 0"); // Invalid code. |