| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <memory> | 5 #include <memory> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "apps/test/app_window_waiter.h" | 9 #include "apps/test/app_window_waiter.h" |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 DISALLOW_COPY_AND_ASSIGN(TerminationObserver); | 255 DISALLOW_COPY_AND_ASSIGN(TerminationObserver); |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 } // namespace | 258 } // namespace |
| 259 | 259 |
| 260 class AutoLaunchedKioskTest : public ExtensionApiTest { | 260 class AutoLaunchedKioskTest : public ExtensionApiTest { |
| 261 public: | 261 public: |
| 262 AutoLaunchedKioskTest() | 262 AutoLaunchedKioskTest() |
| 263 : install_attributes_( | 263 : install_attributes_( |
| 264 chromeos::ScopedStubInstallAttributes::CreateEnterprise( | 264 chromeos::ScopedStubInstallAttributes::CreateCloudManaged( |
| 265 "domain.com", | 265 "domain.com", |
| 266 "device_id")), | 266 "device_id")), |
| 267 owner_key_util_(new ownership::MockOwnerKeyUtil()), | 267 owner_key_util_(new ownership::MockOwnerKeyUtil()), |
| 268 fake_session_manager_(new PersistentSessionManagerClient()), | 268 fake_session_manager_(new PersistentSessionManagerClient()), |
| 269 fake_cws_(new FakeCWS) { | 269 fake_cws_(new FakeCWS) { |
| 270 set_chromeos_user_ = false; | 270 set_chromeos_user_ = false; |
| 271 } | 271 } |
| 272 | 272 |
| 273 ~AutoLaunchedKioskTest() override = default; | 273 ~AutoLaunchedKioskTest() override = default; |
| 274 | 274 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 ->SetupDefaultEnvironment(); | 520 ->SetupDefaultEnvironment(); |
| 521 | 521 |
| 522 // App launch should be canceled, and user session stopped. | 522 // App launch should be canceled, and user session stopped. |
| 523 termination_waiter.Wait(); | 523 termination_waiter.Wait(); |
| 524 | 524 |
| 525 EXPECT_FALSE(listener.was_satisfied()); | 525 EXPECT_FALSE(listener.was_satisfied()); |
| 526 EXPECT_EQ(KioskAppLaunchError::NOT_KIOSK_ENABLED, KioskAppLaunchError::Get()); | 526 EXPECT_EQ(KioskAppLaunchError::NOT_KIOSK_ENABLED, KioskAppLaunchError::Get()); |
| 527 } | 527 } |
| 528 | 528 |
| 529 } // namespace chromeos | 529 } // namespace chromeos |
| OLD | NEW |