Allow SettingsIntelligence to access SearchResultTrampoline

Bug: 64938328
Test: robotests
Change-Id: I89b0b8adf1e034f0fc57a3991fb56452a7210219
This commit is contained in:
Fan Zhang
2017-11-13 13:22:42 -08:00
parent 7020d97545
commit 439921345a
3 changed files with 24 additions and 14 deletions

View File

@@ -140,11 +140,18 @@ public class SearchFeatureProviderImplTest {
}
@Test
public void verifyLaunchSearchResultPageCaller_goodCaller_shouldNotCrash() {
public void verifyLaunchSearchResultPageCaller_settingsCaller_shouldNotCrash() {
final ComponentName cn = new ComponentName(mActivity.getPackageName(), "class");
mProvider.verifyLaunchSearchResultPageCaller(mActivity, cn);
}
@Test
public void verifyLaunchSearchResultPageCaller_settingsIntelligenceCaller_shouldNotCrash() {
final ComponentName cn =
new ComponentName(mProvider.getSettingsIntelligencePkgName(), "class");
mProvider.verifyLaunchSearchResultPageCaller(mActivity, cn);
}
@Test
public void cleanQuery_trimsWhitespace() {
final String query = " space ";