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

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

Issue 2819373003: Enable once flaky tests in Chrome OS file manager. (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | 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) 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 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/chromeos/drive/file_system_util.h" 9 #include "chrome/browser/chromeos/drive/file_system_util.h"
10 #include "chrome/browser/chromeos/file_manager/file_manager_browsertest_base.h" 10 #include "chrome/browser/chromeos/file_manager/file_manager_browsertest_base.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ 65 #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \
66 INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) 66 INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator)
67 67
68 // Fails on official build. http://crbug.com/429294 68 // Fails on official build. http://crbug.com/429294
69 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) 69 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD)
70 #define MAYBE_FileDisplay DISABLED_FileDisplay 70 #define MAYBE_FileDisplay DISABLED_FileDisplay
71 #else 71 #else
72 #define MAYBE_FileDisplay FileDisplay 72 #define MAYBE_FileDisplay FileDisplay
73 #endif 73 #endif
74 WRAPPED_INSTANTIATE_TEST_CASE_P( 74 WRAPPED_INSTANTIATE_TEST_CASE_P(
75 DISABLED_FileDisplay, 75 MAYBE_FileDisplay,
76 FileManagerBrowserTest, 76 FileManagerBrowserTest,
77 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"), 77 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"),
78 TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"), 78 TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"),
79 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDrive"), 79 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDrive"),
80 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayMtp"), 80 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayMtp"),
81 TestParameter(NOT_IN_GUEST_MODE, "searchNormal"), 81 TestParameter(NOT_IN_GUEST_MODE, "searchNormal"),
82 TestParameter(NOT_IN_GUEST_MODE, "searchCaseInsensitive"), 82 TestParameter(NOT_IN_GUEST_MODE, "searchCaseInsensitive"),
83 TestParameter(NOT_IN_GUEST_MODE, "searchNotFound"))); 83 TestParameter(NOT_IN_GUEST_MODE, "searchNotFound")));
84 84
85 // Fails on official build. http://crbug.com/429294 85 // Fails on official build. http://crbug.com/429294
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 TestParameter(NOT_IN_GUEST_MODE, 146 TestParameter(NOT_IN_GUEST_MODE,
147 "createNewFolderDrive"))); 147 "createNewFolderDrive")));
148 148
149 // Fails on official build. http://crbug.com/429294 149 // Fails on official build. http://crbug.com/429294
150 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) 150 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD)
151 #define MAYBE_KeyboardOperations DISABLED_KeyboardOperations 151 #define MAYBE_KeyboardOperations DISABLED_KeyboardOperations
152 #else 152 #else
153 #define MAYBE_KeyboardOperations KeyboardOperations 153 #define MAYBE_KeyboardOperations KeyboardOperations
154 #endif 154 #endif
155 WRAPPED_INSTANTIATE_TEST_CASE_P( 155 WRAPPED_INSTANTIATE_TEST_CASE_P(
156 DISABLED_KeyboardOperations, 156 MAYBE_KeyboardOperations,
157 FileManagerBrowserTest, 157 FileManagerBrowserTest,
158 ::testing::Values( 158 ::testing::Values(
159 TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), 159 TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"),
160 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDownloads"), 160 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDownloads"),
161 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"), 161 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"),
162 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"), 162 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"),
163 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"), 163 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"),
164 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"), 164 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"),
165 TestParameter(IN_GUEST_MODE, "renameFileDownloads"), 165 TestParameter(IN_GUEST_MODE, "renameFileDownloads"),
166 TestParameter(NOT_IN_GUEST_MODE, "renameFileDownloads"), 166 TestParameter(NOT_IN_GUEST_MODE, "renameFileDownloads"),
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 TestParameter(NOT_IN_GUEST_MODE, "clickFirstSearchResult"), 265 TestParameter(NOT_IN_GUEST_MODE, "clickFirstSearchResult"),
266 TestParameter(NOT_IN_GUEST_MODE, "pressEnterToSearch"))); 266 TestParameter(NOT_IN_GUEST_MODE, "pressEnterToSearch")));
267 267
268 // Fails on official build. http://crbug.com/429294 268 // Fails on official build. http://crbug.com/429294
269 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) 269 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD)
270 #define MAYBE_Transfer DISABLED_Transfer 270 #define MAYBE_Transfer DISABLED_Transfer
271 #else 271 #else
272 #define MAYBE_Transfer Transfer 272 #define MAYBE_Transfer Transfer
273 #endif 273 #endif
274 WRAPPED_INSTANTIATE_TEST_CASE_P( 274 WRAPPED_INSTANTIATE_TEST_CASE_P(
275 DISABLED_Transfer, 275 MAYBE_Transfer,
276 FileManagerBrowserTest, 276 FileManagerBrowserTest,
277 ::testing::Values( 277 ::testing::Values(
278 TestParameter(NOT_IN_GUEST_MODE, "transferFromDriveToDownloads"), 278 TestParameter(NOT_IN_GUEST_MODE, "transferFromDriveToDownloads"),
279 TestParameter(NOT_IN_GUEST_MODE, "transferFromDownloadsToDrive"), 279 TestParameter(NOT_IN_GUEST_MODE, "transferFromDownloadsToDrive"),
280 TestParameter(NOT_IN_GUEST_MODE, "transferFromSharedToDownloads"), 280 TestParameter(NOT_IN_GUEST_MODE, "transferFromSharedToDownloads"),
281 TestParameter(NOT_IN_GUEST_MODE, "transferFromSharedToDrive"), 281 TestParameter(NOT_IN_GUEST_MODE, "transferFromSharedToDrive"),
282 TestParameter(NOT_IN_GUEST_MODE, "transferFromRecentToDownloads"), 282 TestParameter(NOT_IN_GUEST_MODE, "transferFromRecentToDownloads"),
283 TestParameter(NOT_IN_GUEST_MODE, "transferFromRecentToDrive"), 283 TestParameter(NOT_IN_GUEST_MODE, "transferFromRecentToDrive"),
284 TestParameter(NOT_IN_GUEST_MODE, "transferFromOfflineToDownloads"), 284 TestParameter(NOT_IN_GUEST_MODE, "transferFromOfflineToDownloads"),
285 TestParameter(NOT_IN_GUEST_MODE, "transferFromOfflineToDrive"))); 285 TestParameter(NOT_IN_GUEST_MODE, "transferFromOfflineToDrive")));
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 TestParameter(NOT_IN_GUEST_MODE, "defaultTaskDialogOnDownloads"), 381 TestParameter(NOT_IN_GUEST_MODE, "defaultTaskDialogOnDownloads"),
382 TestParameter(IN_GUEST_MODE, "defaultTaskDialogOnDownloads"), 382 TestParameter(IN_GUEST_MODE, "defaultTaskDialogOnDownloads"),
383 TestParameter(NOT_IN_GUEST_MODE, "defaultTaskDialogOnDrive"))); 383 TestParameter(NOT_IN_GUEST_MODE, "defaultTaskDialogOnDrive")));
384 384
385 #if defined(DISABLE_SLOW_FILESAPP_TESTS) 385 #if defined(DISABLE_SLOW_FILESAPP_TESTS)
386 #define MAYBE_GenericTask DISABLED_GenericTask 386 #define MAYBE_GenericTask DISABLED_GenericTask
387 #else 387 #else
388 #define MAYBE_GenericTask GenericTask 388 #define MAYBE_GenericTask GenericTask
389 #endif 389 #endif
390 WRAPPED_INSTANTIATE_TEST_CASE_P( 390 WRAPPED_INSTANTIATE_TEST_CASE_P(
391 DISABLED_GenericTask, 391 MAYBE_GenericTask,
392 FileManagerBrowserTest, 392 FileManagerBrowserTest,
393 ::testing::Values( 393 ::testing::Values(
394 TestParameter(NOT_IN_GUEST_MODE, "genericTaskIsNotExecuted"), 394 TestParameter(NOT_IN_GUEST_MODE, "genericTaskIsNotExecuted"),
395 TestParameter(NOT_IN_GUEST_MODE, "genericAndNonGenericTasksAreMixed"))); 395 TestParameter(NOT_IN_GUEST_MODE, "genericAndNonGenericTasksAreMixed")));
396 396
397 #if defined(DISABLE_SLOW_FILESAPP_TESTS) 397 #if defined(DISABLE_SLOW_FILESAPP_TESTS)
398 #define MAYBE_FolderShortcuts DISABLED_FolderShortcuts 398 #define MAYBE_FolderShortcuts DISABLED_FolderShortcuts
399 #else 399 #else
400 #define MAYBE_FolderShortcuts FolderShortcuts 400 #define MAYBE_FolderShortcuts FolderShortcuts
401 #endif 401 #endif
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 TestParameter(NOT_IN_GUEST_MODE, "requestMountMultipleMounts"), 553 TestParameter(NOT_IN_GUEST_MODE, "requestMountMultipleMounts"),
554 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceDevice"), 554 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceDevice"),
555 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceFile"))); 555 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceFile")));
556 556
557 #if defined(DISABLE_SLOW_FILESAPP_TESTS) 557 #if defined(DISABLE_SLOW_FILESAPP_TESTS)
558 #define MAYBE_GearMenu DISABLED_GearMenu 558 #define MAYBE_GearMenu DISABLED_GearMenu
559 #else 559 #else
560 #define MAYBE_GearMenu GearMenu 560 #define MAYBE_GearMenu GearMenu
561 #endif 561 #endif
562 WRAPPED_INSTANTIATE_TEST_CASE_P( 562 WRAPPED_INSTANTIATE_TEST_CASE_P(
563 DISABLED_GearMenu, 563 MAYBE_GearMenu,
564 FileManagerBrowserTest, 564 FileManagerBrowserTest,
565 ::testing::Values( 565 ::testing::Values(
566 TestParameter(NOT_IN_GUEST_MODE, "showHiddenFilesOnDownloads"), 566 TestParameter(NOT_IN_GUEST_MODE, "showHiddenFilesOnDownloads"),
567 TestParameter(NOT_IN_GUEST_MODE, "showHiddenFilesOnDrive"), 567 TestParameter(NOT_IN_GUEST_MODE, "showHiddenFilesOnDrive"),
568 TestParameter(NOT_IN_GUEST_MODE, "hideGoogleDocs"))); 568 TestParameter(NOT_IN_GUEST_MODE, "hideGoogleDocs")));
569 569
570 // Structure to describe an account info. 570 // Structure to describe an account info.
571 struct TestAccountInfo { 571 struct TestAccountInfo {
572 const char* const gaia_id; 572 const char* const gaia_id;
573 const char* const email; 573 const char* const email;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 692
693 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) { 693 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) {
694 AddAllUsers(); 694 AddAllUsers();
695 695
696 // Sanity check that normal operations work in multi-profile setting as well. 696 // Sanity check that normal operations work in multi-profile setting as well.
697 set_test_case_name("keyboardCopyDrive"); 697 set_test_case_name("keyboardCopyDrive");
698 StartTest(); 698 StartTest();
699 } 699 }
700 700
701 } // namespace file_manager 701 } // namespace file_manager
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698