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/run_loop.h" | 5 #include "base/run_loop.h" |
6 #include "base/stl_util.h" | 6 #include "base/stl_util.h" |
7 #include "chrome/browser/chromeos/drive/file_change.h" | 7 #include "chrome/browser/chromeos/drive/file_change.h" |
8 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" | 8 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" |
9 #include "chrome/browser/chromeos/file_manager/drive_test_util.h" | 9 #include "chrome/browser/chromeos/file_manager/drive_test_util.h" |
10 #include "chrome/browser/chromeos/file_manager/file_watcher.h" | 10 #include "chrome/browser/chromeos/file_manager/file_watcher.h" |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 ASSERT_TRUE(InitializeLocalFileSystem(kLocalMountPointName, &temp_dir, | 418 ASSERT_TRUE(InitializeLocalFileSystem(kLocalMountPointName, &temp_dir, |
419 &mount_point_dir)) | 419 &mount_point_dir)) |
420 << "Failed to initialize test file system"; | 420 << "Failed to initialize test file system"; |
421 | 421 |
422 EXPECT_TRUE(content::BrowserContext::GetMountPoints(browser()->profile()) | 422 EXPECT_TRUE(content::BrowserContext::GetMountPoints(browser()->profile()) |
423 ->RegisterFileSystem( | 423 ->RegisterFileSystem( |
424 kLocalMountPointName, storage::kFileSystemTypeNativeLocal, | 424 kLocalMountPointName, storage::kFileSystemTypeNativeLocal, |
425 storage::FileSystemMountOption(), mount_point_dir)); | 425 storage::FileSystemMountOption(), mount_point_dir)); |
426 file_manager::VolumeManager::Get(browser()->profile()) | 426 file_manager::VolumeManager::Get(browser()->profile()) |
427 ->AddVolumeInfoForTesting(mount_point_dir, | 427 ->AddVolumeInfoForTesting( |
428 file_manager::VOLUME_TYPE_TESTING, | 428 mount_point_dir, file_manager::VOLUME_TYPE_TESTING, |
429 chromeos::DEVICE_TYPE_UNKNOWN); | 429 chromeos::DEVICE_TYPE_UNKNOWN, false /* read_only */); |
430 | 430 |
431 ASSERT_TRUE(RunComponentExtensionTest("file_browser/content_checksum_test")); | 431 ASSERT_TRUE(RunComponentExtensionTest("file_browser/content_checksum_test")); |
432 } | 432 } |
OLD | NEW |