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

Side by Side Diff: chrome/browser/chromeos/file_manager/file_manager_browsertest.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 base::Time::Now())); 305 base::Time::Now()));
306 CreateEntry( 306 CreateEntry(
307 TestEntryInfo(DIRECTORY, std::string(), "A", std::string(), NONE, 307 TestEntryInfo(DIRECTORY, std::string(), "A", std::string(), NONE,
308 base::Time::Now())); 308 base::Time::Now()));
309 return true; 309 return true;
310 } 310 }
311 311
312 virtual bool Mount(Profile* profile) OVERRIDE { 312 virtual bool Mount(Profile* profile) OVERRIDE {
313 if (!CreateRootDirectory(profile)) 313 if (!CreateRootDirectory(profile))
314 return false; 314 return false;
315 fileapi::ExternalMountPoints* const mount_points = 315 storage::ExternalMountPoints* const mount_points =
316 fileapi::ExternalMountPoints::GetSystemInstance(); 316 storage::ExternalMountPoints::GetSystemInstance();
317 317
318 // First revoke the existing mount point (if any). 318 // First revoke the existing mount point (if any).
319 mount_points->RevokeFileSystem(name()); 319 mount_points->RevokeFileSystem(name());
320 const bool result = 320 const bool result =
321 mount_points->RegisterFileSystem(name(), 321 mount_points->RegisterFileSystem(name(),
322 fileapi::kFileSystemTypeNativeLocal, 322 storage::kFileSystemTypeNativeLocal,
323 fileapi::FileSystemMountOption(), 323 storage::FileSystemMountOption(),
324 root_path()); 324 root_path());
325 if (!result) 325 if (!result)
326 return false; 326 return false;
327 327
328 VolumeManager::Get(profile)->AddVolumeInfoForTesting( 328 VolumeManager::Get(profile)->AddVolumeInfoForTesting(
329 root_path(), volume_type_, device_type_); 329 root_path(), volume_type_, device_type_);
330 return true; 330 return true;
331 } 331 }
332 332
333 private: 333 private:
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 } 1517 }
1518 1518
1519 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { 1519 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) {
1520 AddScript("video_player/open_video_files.js"); 1520 AddScript("video_player/open_video_files.js");
1521 set_test_case_name("openSingleVideoOnDrive"); 1521 set_test_case_name("openSingleVideoOnDrive");
1522 StartTest(); 1522 StartTest();
1523 } 1523 }
1524 1524
1525 } // namespace 1525 } // namespace
1526 } // namespace file_manager 1526 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/file_browser_handlers.cc ('k') | chrome/browser/chromeos/file_manager/file_tasks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698