Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_manager_private_apitest.cc

Issue 1013973004: Allow to create read only testing volumes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698