| 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 // Browser test for basic Chrome OS file manager functionality: | 5 // Browser test for basic Chrome OS file manager functionality: |
| 6 // - The file list is updated when a file is added externally to the Downloads | 6 // - The file list is updated when a file is added externally to the Downloads |
| 7 // folder. | 7 // folder. |
| 8 // - Selecting a file and copy-pasting it with the keyboard copies the file. | 8 // - Selecting a file and copy-pasting it with the keyboard copies the file. |
| 9 // - Selecting a file and pressing delete deletes it. | 9 // - Selecting a file and pressing delete deletes it. |
| 10 | 10 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 mount_points->RevokeFileSystem(name()); | 326 mount_points->RevokeFileSystem(name()); |
| 327 const bool result = | 327 const bool result = |
| 328 mount_points->RegisterFileSystem(name(), | 328 mount_points->RegisterFileSystem(name(), |
| 329 storage::kFileSystemTypeNativeLocal, | 329 storage::kFileSystemTypeNativeLocal, |
| 330 storage::FileSystemMountOption(), | 330 storage::FileSystemMountOption(), |
| 331 root_path()); | 331 root_path()); |
| 332 if (!result) | 332 if (!result) |
| 333 return false; | 333 return false; |
| 334 | 334 |
| 335 VolumeManager::Get(profile)->AddVolumeInfoForTesting( | 335 VolumeManager::Get(profile)->AddVolumeInfoForTesting( |
| 336 root_path(), volume_type_, device_type_); | 336 root_path(), volume_type_, device_type_, false /* read_only */); |
| 337 return true; | 337 return true; |
| 338 } | 338 } |
| 339 | 339 |
| 340 private: | 340 private: |
| 341 const VolumeType volume_type_; | 341 const VolumeType volume_type_; |
| 342 const chromeos::DeviceType device_type_; | 342 const chromeos::DeviceType device_type_; |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 // The drive volume class for test. | 345 // The drive volume class for test. |
| 346 // This class provides the operations for a test volume that simulates Google | 346 // This class provides the operations for a test volume that simulates Google |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 StartTest(); | 1459 StartTest(); |
| 1460 } | 1460 } |
| 1461 | 1461 |
| 1462 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { | 1462 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { |
| 1463 set_test_case_name("openSingleVideoOnDrive"); | 1463 set_test_case_name("openSingleVideoOnDrive"); |
| 1464 StartTest(); | 1464 StartTest(); |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 } // namespace | 1467 } // namespace |
| 1468 } // namespace file_manager | 1468 } // namespace file_manager |
| OLD | NEW |