OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <vector> | 6 #include <vector> |
7 | 7 |
8 #include "ash/desktop_background/desktop_background_controller.h" | 8 #include "ash/desktop_background/desktop_background_controller.h" |
9 #include "ash/desktop_background/desktop_background_controller_observer.h" | 9 #include "ash/desktop_background/desktop_background_controller_observer.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 KioskFakeDiskMountManager() {} | 353 KioskFakeDiskMountManager() {} |
354 | 354 |
355 ~KioskFakeDiskMountManager() override {} | 355 ~KioskFakeDiskMountManager() override {} |
356 | 356 |
357 void set_usb_mount_path(const std::string& usb_mount_path) { | 357 void set_usb_mount_path(const std::string& usb_mount_path) { |
358 usb_mount_path_ = usb_mount_path; | 358 usb_mount_path_ = usb_mount_path; |
359 } | 359 } |
360 | 360 |
361 void MountUsbStick() { | 361 void MountUsbStick() { |
362 DCHECK(!usb_mount_path_.empty()); | 362 DCHECK(!usb_mount_path_.empty()); |
363 MountPath(usb_mount_path_, "", "", chromeos::MOUNT_TYPE_DEVICE); | 363 MountPath(usb_mount_path_, "", "", chromeos::MOUNT_TYPE_DEVICE, |
| 364 chromeos::MOUNT_ACCESS_MODE_READ_ONLY); |
364 } | 365 } |
365 | 366 |
366 void UnMountUsbStick() { | 367 void UnMountUsbStick() { |
367 DCHECK(!usb_mount_path_.empty()); | 368 DCHECK(!usb_mount_path_.empty()); |
368 UnmountPath(usb_mount_path_, | 369 UnmountPath(usb_mount_path_, |
369 UNMOUNT_OPTIONS_NONE, | 370 UNMOUNT_OPTIONS_NONE, |
370 disks::DiskMountManager::UnmountPathCallback()); | 371 disks::DiskMountManager::UnmountPathCallback()); |
371 } | 372 } |
372 | 373 |
373 private: | 374 private: |
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 content::WindowedNotificationObserver( | 2403 content::WindowedNotificationObserver( |
2403 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, | 2404 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, |
2404 content::NotificationService::AllSources()).Wait(); | 2405 content::NotificationService::AllSources()).Wait(); |
2405 | 2406 |
2406 // Wait for the wallpaper to load. | 2407 // Wait for the wallpaper to load. |
2407 WaitForWallpaper(); | 2408 WaitForWallpaper(); |
2408 EXPECT_TRUE(wallpaper_loaded()); | 2409 EXPECT_TRUE(wallpaper_loaded()); |
2409 } | 2410 } |
2410 | 2411 |
2411 } // namespace chromeos | 2412 } // namespace chromeos |
OLD | NEW |