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

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

Issue 140513008: drive: Allow setting modified/accessed date with AddNewDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 // Creates an empty directory with the given |name| and |modification_time|. 314 // Creates an empty directory with the given |name| and |modification_time|.
315 void CreateDirectory(const std::string& parent_id, 315 void CreateDirectory(const std::string& parent_id,
316 const std::string& target_name, 316 const std::string& target_name,
317 const base::Time& modification_time) { 317 const base::Time& modification_time) {
318 google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR; 318 google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
319 scoped_ptr<google_apis::ResourceEntry> resource_entry; 319 scoped_ptr<google_apis::ResourceEntry> resource_entry;
320 fake_drive_service_->AddNewDirectory( 320 fake_drive_service_->AddNewDirectory(
321 parent_id, 321 parent_id,
322 target_name, 322 target_name,
323 drive::DriveServiceInterface::AddNewDirectoryOptions(),
323 google_apis::test_util::CreateCopyResultCallback(&error, 324 google_apis::test_util::CreateCopyResultCallback(&error,
324 &resource_entry)); 325 &resource_entry));
325 base::MessageLoop::current()->RunUntilIdle(); 326 base::MessageLoop::current()->RunUntilIdle();
326 ASSERT_EQ(google_apis::HTTP_CREATED, error); 327 ASSERT_EQ(google_apis::HTTP_CREATED, error);
327 ASSERT_TRUE(resource_entry); 328 ASSERT_TRUE(resource_entry);
328 329
329 fake_drive_service_->SetLastModifiedTime( 330 fake_drive_service_->SetLastModifiedTime(
330 resource_entry->resource_id(), 331 resource_entry->resource_id(),
331 modification_time, 332 modification_time,
332 google_apis::test_util::CreateCopyResultCallback(&error, 333 google_apis::test_util::CreateCopyResultCallback(&error,
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); 747 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus")));
747 748
748 INSTANTIATE_TEST_CASE_P( 749 INSTANTIATE_TEST_CASE_P(
749 Thumbnails, 750 Thumbnails,
750 FileManagerBrowserTest, 751 FileManagerBrowserTest,
751 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), 752 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"),
752 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); 753 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads")));
753 754
754 } // namespace 755 } // namespace
755 } // namespace file_manager 756 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/job_scheduler_unittest.cc ('k') | chrome/browser/drive/drive_api_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698