| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" | 
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" | 
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" | 
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" | 
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" | 
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" | 
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 481   void AddTestMountPoint() override { | 481   void AddTestMountPoint() override { | 
| 482     EXPECT_TRUE( | 482     EXPECT_TRUE( | 
| 483         content::BrowserContext::GetMountPoints(browser()->profile()) | 483         content::BrowserContext::GetMountPoints(browser()->profile()) | 
| 484             ->RegisterFileSystem(kRestrictedMountPointName, | 484             ->RegisterFileSystem(kRestrictedMountPointName, | 
| 485                                  storage::kFileSystemTypeRestrictedNativeLocal, | 485                                  storage::kFileSystemTypeRestrictedNativeLocal, | 
| 486                                  storage::FileSystemMountOption(), | 486                                  storage::FileSystemMountOption(), | 
| 487                                  mount_point_dir_)); | 487                                  mount_point_dir_)); | 
| 488     VolumeManager::Get(browser()->profile()) | 488     VolumeManager::Get(browser()->profile()) | 
| 489         ->AddVolumeInfoForTesting(mount_point_dir_, VOLUME_TYPE_TESTING, | 489         ->AddVolumeInfoForTesting(mount_point_dir_, VOLUME_TYPE_TESTING, | 
| 490                                   chromeos::DEVICE_TYPE_UNKNOWN, | 490                                   chromeos::DEVICE_TYPE_UNKNOWN, | 
| 491                                   false /* read_only */); | 491                                   true /* read_only */); | 
| 492   } | 492   } | 
| 493 | 493 | 
| 494  private: | 494  private: | 
| 495   base::ScopedTempDir tmp_dir_; | 495   base::ScopedTempDir tmp_dir_; | 
| 496   base::FilePath mount_point_dir_; | 496   base::FilePath mount_point_dir_; | 
| 497 }; | 497 }; | 
| 498 | 498 | 
| 499 // Tests for a drive file system. | 499 // Tests for a drive file system. | 
| 500 class DriveFileSystemExtensionApiTest : public FileSystemExtensionApiTestBase { | 500 class DriveFileSystemExtensionApiTest : public FileSystemExtensionApiTestBase { | 
| 501  public: | 501  public: | 
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 854                        AppFileHandlerMulti) { | 854                        AppFileHandlerMulti) { | 
| 855   EXPECT_TRUE( | 855   EXPECT_TRUE( | 
| 856       RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", | 856       RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", | 
| 857                                     FILE_PATH_LITERAL("manifest.json"), | 857                                     FILE_PATH_LITERAL("manifest.json"), | 
| 858                                     "", | 858                                     "", | 
| 859                                     FLAGS_NONE)) | 859                                     FLAGS_NONE)) | 
| 860       << message_; | 860       << message_; | 
| 861 } | 861 } | 
| 862 }  // namespace | 862 }  // namespace | 
| 863 }  // namespace file_manager | 863 }  // namespace file_manager | 
| OLD | NEW | 
|---|