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

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

Issue 18355004: google_apis: Move data files out of chrome/test/data/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix extension tests Created 7 years, 5 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void CheckForUpdates() { 251 void CheckForUpdates() {
252 if (integration_service_ && integration_service_->file_system()) { 252 if (integration_service_ && integration_service_->file_system()) {
253 integration_service_->file_system()->CheckForUpdates(); 253 integration_service_->file_system()->CheckForUpdates();
254 } 254 }
255 } 255 }
256 256
257 drive::DriveIntegrationService* CreateDriveIntegrationService( 257 drive::DriveIntegrationService* CreateDriveIntegrationService(
258 Profile* profile) { 258 Profile* profile) {
259 fake_drive_service_ = new drive::FakeDriveService; 259 fake_drive_service_ = new drive::FakeDriveService;
260 fake_drive_service_->LoadResourceListForWapi( 260 fake_drive_service_->LoadResourceListForWapi(
261 "chromeos/gdata/empty_feed.json"); 261 "gdata/empty_feed.json");
262 fake_drive_service_->LoadAccountMetadataForWapi( 262 fake_drive_service_->LoadAccountMetadataForWapi(
263 "chromeos/gdata/account_metadata.json"); 263 "gdata/account_metadata.json");
264 fake_drive_service_->LoadAppListForDriveApi("chromeos/drive/applist.json"); 264 fake_drive_service_->LoadAppListForDriveApi("drive/applist.json");
265 integration_service_ = new drive::DriveIntegrationService( 265 integration_service_ = new drive::DriveIntegrationService(
266 profile, 266 profile,
267 fake_drive_service_, 267 fake_drive_service_,
268 test_cache_root_.path(), 268 test_cache_root_.path(),
269 NULL); 269 NULL);
270 return integration_service_; 270 return integration_service_;
271 } 271 }
272 272
273 private: 273 private:
274 base::ScopedTempDir test_cache_root_; 274 base::ScopedTempDir test_cache_root_;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 TestParameter(NOT_IN_GUEST_MODE, "hideSearchBox"))); 503 TestParameter(NOT_IN_GUEST_MODE, "hideSearchBox")));
504 504
505 INSTANTIATE_TEST_CASE_P( 505 INSTANTIATE_TEST_CASE_P(
506 RestorePrefs, 506 RestorePrefs,
507 FileManagerBrowserTest, 507 FileManagerBrowserTest,
508 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), 508 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"),
509 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), 509 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"),
510 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), 510 TestParameter(IN_GUEST_MODE, "restoreCurrentView"),
511 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); 511 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView")));
512 } // namespace 512 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698