summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-03-10 01:39:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-10 01:39:26 +0000
commit175d97ebba4e6d072d808b449421edeeb60a05cd (patch)
tree144529cc0dcf2ea47a91b93ffe6c5ef7d3a86f8c /tests
parentda5b55953a6426d3a83b4b89ed904e2c74046d25 (diff)
parenta4df84863d554f08abebf0c39748deded4121814 (diff)
Merge changes I50b8d4b6,I4aba9cf0 into rvc-dev
* changes: WifiServiceImpl: Fix package removed handling WifiShellCommand: Add a shell command for wifi settings reset
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
index 8ecac08bc..935c52fb4 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
@@ -3648,7 +3648,8 @@ public class WifiServiceImplTest extends WifiBaseTest {
&& filter.hasAction(Intent.ACTION_PACKAGE_CHANGED)));
int uid = TEST_UID;
String packageName = TEST_PACKAGE_NAME;
- when(mPackageManager.getApplicationInfo(TEST_PACKAGE_NAME, 0)).thenReturn(null);
+ doThrow(new PackageManager.NameNotFoundException()).when(mPackageManager)
+ .getApplicationInfo(TEST_PACKAGE_NAME, 0);
// Send the broadcast
Intent intent = new Intent(Intent.ACTION_PACKAGE_FULLY_REMOVED);
intent.putExtra(Intent.EXTRA_UID, uid);