| Index: chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc
|
| diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc b/chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc
|
| index b90f73b5afa41eae57e3c3f9616533faf09b9c77..b38865f3121053c9466e32d6820b0b26d25ff066 100644
|
| --- a/chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc
|
| +++ b/chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc
|
| @@ -361,11 +361,26 @@ IN_PROC_BROWSER_TEST_F(KioskAppManagerTest, Basic) {
|
| manager()->SetAutoLaunchApp("fake_app_1");
|
| EXPECT_EQ("fake_app_1", manager()->GetAutoLaunchApp());
|
|
|
| + // Make sure that if an app was auto launched, it is reflected in the
|
| + // app data.
|
| + KioskAppManager::App app;
|
| + manager()->GetApp("fake_app_1", &app);
|
| + EXPECT_FALSE(app.was_auto_launched);
|
| +
|
| + manager()->SetAppWasAutoLaunched("fake_app_1");
|
| + manager()->GetApp("fake_app_1", &app);
|
| + EXPECT_TRUE(app.was_auto_launched);
|
| +
|
| // Clear the auto launch app.
|
| manager()->SetAutoLaunchApp("");
|
| EXPECT_EQ("", manager()->GetAutoLaunchApp());
|
| EXPECT_FALSE(manager()->IsAutoLaunchEnabled());
|
|
|
| + // App should still report it was auto launched even though it is no longer
|
| + // set to auto launch in the future.
|
| + manager()->GetApp("fake_app_1", &app);
|
| + EXPECT_TRUE(app.was_auto_launched);
|
| +
|
| // Set another auto launch app.
|
| manager()->SetAutoLaunchApp("fake_app_2");
|
| EXPECT_EQ("fake_app_2", manager()->GetAutoLaunchApp());
|
|
|