Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc

Issue 2210143003: arc: Handle non-launchable apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit_tests due rebase and mojo param order change - trivial Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
index 9fd7fe32d2da27ff9e43d5a09090bcfbaa3fef37..cf060648dab5a4e9ea943b6fa0d8602ea35ef868 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
@@ -872,7 +872,7 @@ class ChromeLauncherControllerImplTest : public BrowserWithTestWindowTest {
app_info.name, app_info.package_name, app_info.activity,
std::string() /* intent_uri */, std::string() /* icon_resource_id */,
false /* sticky */, true /* notifications_enabled */,
- false /* shortcut */, app_info.orientation_lock);
+ false /* shortcut */, true /* launchable */, app_info.orientation_lock);
const std::string app_id =
ArcAppListPrefs::GetAppId(app_info.package_name, app_info.activity);
EXPECT_TRUE(prefs->GetApp(app_id));
@@ -882,7 +882,8 @@ class ChromeLauncherControllerImplTest : public BrowserWithTestWindowTest {
void NotifyOnTaskCreated(const arc::mojom::AppInfo& appinfo,
int32_t task_id) {
ArcAppListPrefs* const prefs = arc_test_.arc_app_list_prefs();
- prefs->OnTaskCreated(task_id, appinfo.package_name, appinfo.activity);
+ prefs->OnTaskCreated(task_id, appinfo.package_name, appinfo.activity,
+ appinfo.name);
}
void NotifyOnTaskOrientationLockRequested(int32_t task_id,

Powered by Google App Engine
This is Rietveld 408576698