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

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

Issue 2260363003: arc: Handle non-launchable apps. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2785
Patch Set: resolve unit_tests 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 53152ed83cc98d7eaeb9c88ca093f5503f71e575..578c7d020e27710661c69388fed00e2af4849b0a 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
@@ -891,7 +891,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));
@@ -901,7 +901,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