Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b0e4018 authored by Tsung-Mao Fang's avatar Tsung-Mao Fang
Browse files

Fix search test

The broken test is because the activityInfo has no package name.
Set a random package name to fix it.

Test: run robo test
Fix: 214945263
Change-Id: I5ae5a0021f1473e6eadbad5f6e1f22840a44d592
parent aa19771a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -68,7 +68,9 @@ public class SearchFeatureProviderImplTest {
        final Intent searchIntent = new Intent(Settings.ACTION_APP_SEARCH_SETTINGS)
                .setPackage(mActivity.getString(R.string.config_settingsintelligence_package_name));
        final ResolveInfo info = new ResolveInfo();
        info.activityInfo = new ActivityInfo();
        final ActivityInfo activityInfo = new ActivityInfo();
        activityInfo.packageName = "com.android.example";
        info.activityInfo = activityInfo;
        mPackageManager.addResolveInfoForIntent(searchIntent, info);

        // Should not crash.