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

Unified Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 900553006: Updated KioskAppManager to track whether an app was auto-launched. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment cleanup Created 5 years, 10 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/chromeos/login/kiosk_browsertest.cc
diff --git a/chrome/browser/chromeos/login/kiosk_browsertest.cc b/chrome/browser/chromeos/login/kiosk_browsertest.cc
index 37a3ae7a4a48750eb4549d4bd0b5b1e54bfe756c..c7336c631edc86553d591317f0e530669f5f4b71 100644
--- a/chrome/browser/chromeos/login/kiosk_browsertest.cc
+++ b/chrome/browser/chromeos/login/kiosk_browsertest.cc
@@ -807,6 +807,9 @@ class KioskTest : public OobeBaseTest {
IN_PROC_BROWSER_TEST_F(KioskTest, InstallAndLaunchApp) {
StartAppLaunchFromLoginScreen(SimulateNetworkOnlineClosure());
WaitForAppLaunchSuccess();
+ KioskAppManager::App app;
+ ASSERT_TRUE(KioskAppManager::Get()->GetApp(test_app_id(), &app));
+ EXPECT_FALSE(app.was_auto_launched);
}
IN_PROC_BROWSER_TEST_F(KioskTest, ZoomSupport) {
@@ -1082,6 +1085,10 @@ IN_PROC_BROWSER_TEST_F(KioskTest, AutolaunchWarningConfirm) {
EXPECT_TRUE(KioskAppManager::Get()->IsAutoLaunchEnabled());
WaitForAppLaunchSuccess();
+
+ KioskAppManager::App app;
+ ASSERT_TRUE(KioskAppManager::Get()->GetApp(test_app_id(), &app));
+ EXPECT_TRUE(app.was_auto_launched);
}
IN_PROC_BROWSER_TEST_F(KioskTest, KioskEnableCancel) {
@@ -1259,7 +1266,7 @@ IN_PROC_BROWSER_TEST_F(KioskTest, NoEnterpriseAutoLaunchWhenUntrusted) {
// not to inject an auto-launch policy before it runs.
bartfab (slow) 2015/02/06 12:07:39 Nit: I see my comment is missing a "possible." Wou
Andrew T Wilson (Slow) 2015/02/06 13:24:21 Done.
LoginDisplayHost* login_display_host = LoginDisplayHostImpl::default_host();
ASSERT_TRUE(login_display_host);
- login_display_host->StartAppLaunch(test_app_id(), false);
+ login_display_host->StartAppLaunch(test_app_id(), false, true);
// Check that no launch has started.
EXPECT_FALSE(login_display_host->GetAppLaunchController());

Powered by Google App Engine
This is Rietveld 408576698