| OLD | NEW |
| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 TestParameter(NOT_IN_GUEST_MODE, "renameFileDrive"), | 171 TestParameter(NOT_IN_GUEST_MODE, "renameFileDrive"), |
| 172 TestParameter(IN_GUEST_MODE, "renameNewDirectoryDownloads"), | 172 TestParameter(IN_GUEST_MODE, "renameNewDirectoryDownloads"), |
| 173 TestParameter(NOT_IN_GUEST_MODE, "renameNewDirectoryDownloads"), | 173 TestParameter(NOT_IN_GUEST_MODE, "renameNewDirectoryDownloads"), |
| 174 TestParameter(NOT_IN_GUEST_MODE, "renameNewDirectoryDrive"))); | 174 TestParameter(NOT_IN_GUEST_MODE, "renameNewDirectoryDrive"))); |
| 175 | 175 |
| 176 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 176 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 177 #define MAYBE_Delete DISABLED_Delete | 177 #define MAYBE_Delete DISABLED_Delete |
| 178 #else | 178 #else |
| 179 #define MAYBE_Delete Delete | 179 #define MAYBE_Delete Delete |
| 180 #endif | 180 #endif |
| 181 // Flaky: crbug.com/699426 | |
| 182 WRAPPED_INSTANTIATE_TEST_CASE_P( | 181 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 183 DISABLED_Delete, | 182 MAYBE_Delete, |
| 184 FileManagerBrowserTest, | 183 FileManagerBrowserTest, |
| 185 ::testing::Values( | 184 ::testing::Values( |
| 186 TestParameter(NOT_IN_GUEST_MODE, | 185 TestParameter(NOT_IN_GUEST_MODE, |
| 187 "deleteMenuItemIsDisabledWhenNoItemIsSelected"), | 186 "deleteMenuItemIsDisabledWhenNoItemIsSelected"), |
| 188 TestParameter(NOT_IN_GUEST_MODE, "deleteOneItemFromToolbar"))); | 187 TestParameter(NOT_IN_GUEST_MODE, "deleteOneItemFromToolbar"))); |
| 189 | 188 |
| 190 WRAPPED_INSTANTIATE_TEST_CASE_P( | 189 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 191 DISABLED_QuickView, | 190 DISABLED_QuickView, |
| 192 FileManagerBrowserTest, | 191 FileManagerBrowserTest, |
| 193 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "openQuickView"))); | 192 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "openQuickView"))); |
| 194 | 193 |
| 195 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 194 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 196 #define MAYBE_DirectoryTreeContextMenu DISABLED_DirectoryTreeContextMenu | 195 #define MAYBE_DirectoryTreeContextMenu DISABLED_DirectoryTreeContextMenu |
| 197 #else | 196 #else |
| 198 #define MAYBE_DirectoryTreeContextMenu DirectoryTreeContextMenu | 197 #define MAYBE_DirectoryTreeContextMenu DirectoryTreeContextMenu |
| 199 #endif | 198 #endif |
| 200 // Flaky: crbug.com/700156, crbug.com/699083 | |
| 201 WRAPPED_INSTANTIATE_TEST_CASE_P( | 199 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 202 DISABLED_DirectoryTreeContextMenu, | 200 MAYBE_DirectoryTreeContextMenu, |
| 203 FileManagerBrowserTest, | 201 FileManagerBrowserTest, |
| 204 ::testing::Values( | 202 ::testing::Values( |
| 205 TestParameter(NOT_IN_GUEST_MODE, | 203 TestParameter(NOT_IN_GUEST_MODE, |
| 206 "copyFromDirectoryTreeWithContextMenu"), | 204 "copyFromDirectoryTreeWithContextMenu"), |
| 207 TestParameter(IN_GUEST_MODE, "copyFromDirectoryTreeWithContextMenu"), | 205 TestParameter(IN_GUEST_MODE, "copyFromDirectoryTreeWithContextMenu"), |
| 208 TestParameter(NOT_IN_GUEST_MODE, | 206 TestParameter(NOT_IN_GUEST_MODE, |
| 209 "copyFromDirectoryTreeWithKeyboardShortcut"), | 207 "copyFromDirectoryTreeWithKeyboardShortcut"), |
| 210 TestParameter(IN_GUEST_MODE, | 208 TestParameter(IN_GUEST_MODE, |
| 211 "copyFromDirectoryTreeWithKeyboardShortcut"), | 209 "copyFromDirectoryTreeWithKeyboardShortcut"), |
| 212 TestParameter(NOT_IN_GUEST_MODE, | 210 TestParameter(NOT_IN_GUEST_MODE, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 TestParameter(NOT_IN_GUEST_MODE, | 250 TestParameter(NOT_IN_GUEST_MODE, |
| 253 "createDirectoryFromDirectoryTreeWithoutChangingCurrentDi" | 251 "createDirectoryFromDirectoryTreeWithoutChangingCurrentDi" |
| 254 "rectory"))); | 252 "rectory"))); |
| 255 | 253 |
| 256 // Fails on official build. http://crbug.com/429294 | 254 // Fails on official build. http://crbug.com/429294 |
| 257 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) | 255 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) |
| 258 #define MAYBE_DriveSpecific DISABLED_DriveSpecific | 256 #define MAYBE_DriveSpecific DISABLED_DriveSpecific |
| 259 #else | 257 #else |
| 260 #define MAYBE_DriveSpecific DriveSpecific | 258 #define MAYBE_DriveSpecific DriveSpecific |
| 261 #endif | 259 #endif |
| 262 // Flaky: crbug.com/698834 | |
| 263 WRAPPED_INSTANTIATE_TEST_CASE_P( | 260 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 264 DISABLED_DriveSpecific, | 261 MAYBE_DriveSpecific, |
| 265 FileManagerBrowserTest, | 262 FileManagerBrowserTest, |
| 266 ::testing::Values( | 263 ::testing::Values( |
| 267 TestParameter(NOT_IN_GUEST_MODE, "openSidebarRecent"), | 264 TestParameter(NOT_IN_GUEST_MODE, "openSidebarRecent"), |
| 268 TestParameter(NOT_IN_GUEST_MODE, "openSidebarOffline"), | 265 TestParameter(NOT_IN_GUEST_MODE, "openSidebarOffline"), |
| 269 TestParameter(NOT_IN_GUEST_MODE, "openSidebarSharedWithMe"), | 266 TestParameter(NOT_IN_GUEST_MODE, "openSidebarSharedWithMe"), |
| 270 TestParameter(NOT_IN_GUEST_MODE, "autocomplete"), | 267 TestParameter(NOT_IN_GUEST_MODE, "autocomplete"), |
| 271 TestParameter(NOT_IN_GUEST_MODE, "pinFileOnMobileNetwork"), | 268 TestParameter(NOT_IN_GUEST_MODE, "pinFileOnMobileNetwork"), |
| 272 TestParameter(NOT_IN_GUEST_MODE, "clickFirstSearchResult"), | 269 TestParameter(NOT_IN_GUEST_MODE, "clickFirstSearchResult"), |
| 273 TestParameter(NOT_IN_GUEST_MODE, "pressEnterToSearch"))); | 270 TestParameter(NOT_IN_GUEST_MODE, "pressEnterToSearch"))); |
| 274 | 271 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 304 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), | 301 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), |
| 305 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), | 302 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), |
| 306 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), | 303 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), |
| 307 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); | 304 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); |
| 308 | 305 |
| 309 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 306 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 310 #define MAYBE_ShareDialog DISABLED_ShareDialog | 307 #define MAYBE_ShareDialog DISABLED_ShareDialog |
| 311 #else | 308 #else |
| 312 #define MAYBE_ShareDialog ShareDialog | 309 #define MAYBE_ShareDialog ShareDialog |
| 313 #endif | 310 #endif |
| 314 // Flaky: crbug.com/702119. | |
| 315 WRAPPED_INSTANTIATE_TEST_CASE_P( | 311 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 316 DISABLED_ShareDialog, | 312 DISABLED_ShareDialog, |
| 317 FileManagerBrowserTest, | 313 FileManagerBrowserTest, |
| 318 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "shareFile"), | 314 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "shareFile"), |
| 319 TestParameter(NOT_IN_GUEST_MODE, "shareDirectory"))); | 315 TestParameter(NOT_IN_GUEST_MODE, "shareDirectory"))); |
| 320 | 316 |
| 321 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 317 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 322 #define MAYBE_RestoreGeometry DISABLED_RestoreGeometry | 318 #define MAYBE_RestoreGeometry DISABLED_RestoreGeometry |
| 323 #else | 319 #else |
| 324 #define MAYBE_RestoreGeometry RestoreGeometry | 320 #define MAYBE_RestoreGeometry RestoreGeometry |
| (...skipping 16 matching lines...) Expand all Loading... |
| 341 FileManagerBrowserTest, | 337 FileManagerBrowserTest, |
| 342 ::testing::Values(TestParameter(IN_GUEST_MODE, "traverseDownloads"), | 338 ::testing::Values(TestParameter(IN_GUEST_MODE, "traverseDownloads"), |
| 343 TestParameter(NOT_IN_GUEST_MODE, "traverseDownloads"), | 339 TestParameter(NOT_IN_GUEST_MODE, "traverseDownloads"), |
| 344 TestParameter(NOT_IN_GUEST_MODE, "traverseDrive"))); | 340 TestParameter(NOT_IN_GUEST_MODE, "traverseDrive"))); |
| 345 | 341 |
| 346 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 342 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 347 #define MAYBE_SuggestAppDialog DISABLED_SuggestAppDialog | 343 #define MAYBE_SuggestAppDialog DISABLED_SuggestAppDialog |
| 348 #else | 344 #else |
| 349 #define MAYBE_SuggestAppDialog SuggestAppDialog | 345 #define MAYBE_SuggestAppDialog SuggestAppDialog |
| 350 #endif | 346 #endif |
| 351 // Flaky: crbug.com/701923 | |
| 352 WRAPPED_INSTANTIATE_TEST_CASE_P( | 347 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 353 DISABLED_SuggestAppDialog, | 348 DISABLED_SuggestAppDialog, |
| 354 FileManagerBrowserTest, | 349 FileManagerBrowserTest, |
| 355 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "suggestAppDialog"))); | 350 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "suggestAppDialog"))); |
| 356 | 351 |
| 357 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 352 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 358 #define MAYBE_ExecuteDefaultTaskOnDownloads \ | 353 #define MAYBE_ExecuteDefaultTaskOnDownloads \ |
| 359 DISABLED_ExecuteDefaultTaskOnDownloads | 354 DISABLED_ExecuteDefaultTaskOnDownloads |
| 360 #else | 355 #else |
| 361 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads | 356 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads |
| 362 #endif | 357 #endif |
| 363 // Flaky: crbug.com/699171 | |
| 364 WRAPPED_INSTANTIATE_TEST_CASE_P( | 358 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 365 DISABLED_ExecuteDefaultTaskOnDownloads, | 359 MAYBE_ExecuteDefaultTaskOnDownloads, |
| 366 FileManagerBrowserTest, | 360 FileManagerBrowserTest, |
| 367 ::testing::Values( | 361 ::testing::Values( |
| 368 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), | 362 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), |
| 369 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); | 363 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); |
| 370 | 364 |
| 371 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 365 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 372 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive | 366 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive |
| 373 #else | 367 #else |
| 374 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive | 368 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive |
| 375 #endif | 369 #endif |
| 376 // Flaky: crbug.com/699978 | |
| 377 WRAPPED_INSTANTIATE_TEST_CASE_P( | 370 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 378 DISABLED_ExecuteDefaultTaskOnDrive, | 371 MAYBE_ExecuteDefaultTaskOnDrive, |
| 379 FileManagerBrowserTest, | 372 FileManagerBrowserTest, |
| 380 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 373 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 381 "executeDefaultTaskOnDrive"))); | 374 "executeDefaultTaskOnDrive"))); |
| 382 | 375 |
| 383 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 376 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 384 #define MAYBE_DefaultTaskDialog DISABLED_DefaultTaskDialog | 377 #define MAYBE_DefaultTaskDialog DISABLED_DefaultTaskDialog |
| 385 #else | 378 #else |
| 386 #define MAYBE_DefaultTaskDialog DefaultTaskDialog | 379 #define MAYBE_DefaultTaskDialog DefaultTaskDialog |
| 387 #endif | 380 #endif |
| 388 WRAPPED_INSTANTIATE_TEST_CASE_P( | 381 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 406 TestParameter(NOT_IN_GUEST_MODE, "genericAndNonGenericTasksAreMixed"))); | 399 TestParameter(NOT_IN_GUEST_MODE, "genericAndNonGenericTasksAreMixed"))); |
| 407 | 400 |
| 408 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 401 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 409 #define MAYBE_FolderShortcuts DISABLED_FolderShortcuts | 402 #define MAYBE_FolderShortcuts DISABLED_FolderShortcuts |
| 410 #else | 403 #else |
| 411 #define MAYBE_FolderShortcuts FolderShortcuts | 404 #define MAYBE_FolderShortcuts FolderShortcuts |
| 412 #endif | 405 #endif |
| 413 WRAPPED_INSTANTIATE_TEST_CASE_P( | 406 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 414 MAYBE_FolderShortcuts, | 407 MAYBE_FolderShortcuts, |
| 415 FileManagerBrowserTest, | 408 FileManagerBrowserTest, |
| 416 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 409 ::testing::Values( |
| 417 "traverseFolderShortcuts"))); | 410 TestParameter(NOT_IN_GUEST_MODE, "traverseFolderShortcuts"), |
| 418 // Flaky: crbug.com/702119. | 411 TestParameter(NOT_IN_GUEST_MODE, "addRemoveFolderShortcuts"))); |
| 419 // TestParameter(NOT_IN_GUEST_MODE, "addRemoveFolderShortcuts"))); | |
| 420 | 412 |
| 421 // Fails on official build. http://crbug.com/429294 | 413 // Fails on official build. http://crbug.com/429294 |
| 422 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) | 414 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) |
| 423 #define MAYBE_SortColumns DISABLED_SortColumns | 415 #define MAYBE_SortColumns DISABLED_SortColumns |
| 424 #else | 416 #else |
| 425 #define MAYBE_SortColumns SortColumns | 417 #define MAYBE_SortColumns SortColumns |
| 426 #endif | 418 #endif |
| 427 WRAPPED_INSTANTIATE_TEST_CASE_P( | 419 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 428 MAYBE_SortColumns, | 420 MAYBE_SortColumns, |
| 429 FileManagerBrowserTest, | 421 FileManagerBrowserTest, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 448 WRAPPED_INSTANTIATE_TEST_CASE_P( | 440 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 449 MAYBE_TabindexFocus, | 441 MAYBE_TabindexFocus, |
| 450 FileManagerBrowserTestWithLegacyEventDispatch, | 442 FileManagerBrowserTestWithLegacyEventDispatch, |
| 451 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "tabindexFocus"))); | 443 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "tabindexFocus"))); |
| 452 | 444 |
| 453 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 445 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 454 #define MAYBE_TabindexFocusDownloads DISABLED_TabindexFocusDownloads | 446 #define MAYBE_TabindexFocusDownloads DISABLED_TabindexFocusDownloads |
| 455 #else | 447 #else |
| 456 #define MAYBE_TabindexFocusDownloads TabindexFocusDownloads | 448 #define MAYBE_TabindexFocusDownloads TabindexFocusDownloads |
| 457 #endif | 449 #endif |
| 458 // Flaky: crbug.com/699534 | |
| 459 WRAPPED_INSTANTIATE_TEST_CASE_P( | 450 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 460 DISABLED_TabindexFocusDownloads, | 451 MAYBE_TabindexFocusDownloads, |
| 461 FileManagerBrowserTestWithLegacyEventDispatch, | 452 FileManagerBrowserTestWithLegacyEventDispatch, |
| 462 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 453 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 463 "tabindexFocusDownloads"), | 454 "tabindexFocusDownloads"), |
| 464 TestParameter(IN_GUEST_MODE, "tabindexFocusDownloads"))); | 455 TestParameter(IN_GUEST_MODE, "tabindexFocusDownloads"))); |
| 465 | 456 |
| 466 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 457 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 467 #define MAYBE_TabindexFocusDirectorySelected \ | 458 #define MAYBE_TabindexFocusDirectorySelected \ |
| 468 DISABLED_TabindexFocusDirectorySelected | 459 DISABLED_TabindexFocusDirectorySelected |
| 469 #else | 460 #else |
| 470 #define MAYBE_TabindexFocusDirectorySelected TabindexFocusDirectorySelected | 461 #define MAYBE_TabindexFocusDirectorySelected TabindexFocusDirectorySelected |
| 471 #endif | 462 #endif |
| 472 WRAPPED_INSTANTIATE_TEST_CASE_P( | 463 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 473 MAYBE_TabindexFocusDirectorySelected, | 464 MAYBE_TabindexFocusDirectorySelected, |
| 474 FileManagerBrowserTestWithLegacyEventDispatch, | 465 FileManagerBrowserTestWithLegacyEventDispatch, |
| 475 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 466 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 476 "tabindexFocusDirectorySelected"))); | 467 "tabindexFocusDirectorySelected"))); |
| 477 | 468 |
| 478 // Fails on official cros trunk build. http://crbug.com/480491 | 469 // Fails on official cros trunk build. http://crbug.com/480491 |
| 479 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) | 470 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) |
| 480 #define MAYBE_TabindexOpenDialog DISABLED_TabindexOpenDialog | 471 #define MAYBE_TabindexOpenDialog DISABLED_TabindexOpenDialog |
| 481 #else | 472 #else |
| 482 #define MAYBE_TabindexOpenDialog TabindexOpenDialog | 473 #define MAYBE_TabindexOpenDialog TabindexOpenDialog |
| 483 #endif | 474 #endif |
| 484 // Flaky: crbug.com/615259 | |
| 485 WRAPPED_INSTANTIATE_TEST_CASE_P( | 475 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 486 DISABLED_TabindexOpenDialog, | 476 DISABLED_TabindexOpenDialog, |
| 487 FileManagerBrowserTest, | 477 FileManagerBrowserTest, |
| 488 ::testing::Values( | 478 ::testing::Values( |
| 489 TestParameter(NOT_IN_GUEST_MODE, "tabindexOpenDialogDrive"), | 479 TestParameter(NOT_IN_GUEST_MODE, "tabindexOpenDialogDrive"), |
| 490 TestParameter(NOT_IN_GUEST_MODE, "tabindexOpenDialogDownloads"), | 480 TestParameter(NOT_IN_GUEST_MODE, "tabindexOpenDialogDownloads"), |
| 491 TestParameter(IN_GUEST_MODE, "tabindexOpenDialogDownloads"))); | 481 TestParameter(IN_GUEST_MODE, "tabindexOpenDialogDownloads"))); |
| 492 | 482 |
| 493 // Fails on official build. http://crbug.com/482121. | 483 // Fails on official build. http://crbug.com/482121. |
| 494 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) | 484 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) |
| 495 #define MAYBE_TabindexSaveFileDialog DISABLED_TabindexSaveFileDialog | 485 #define MAYBE_TabindexSaveFileDialog DISABLED_TabindexSaveFileDialog |
| 496 #else | 486 #else |
| 497 #define MAYBE_TabindexSaveFileDialog TabindexSaveFileDialog | 487 #define MAYBE_TabindexSaveFileDialog TabindexSaveFileDialog |
| 498 #endif | 488 #endif |
| 499 // Flaky: crbug.com/615259 | |
| 500 WRAPPED_INSTANTIATE_TEST_CASE_P( | 489 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 501 DISABLED_TabindexSaveFileDialog, | 490 DISABLED_TabindexSaveFileDialog, |
| 502 FileManagerBrowserTest, | 491 FileManagerBrowserTest, |
| 503 ::testing::Values( | 492 ::testing::Values( |
| 504 TestParameter(NOT_IN_GUEST_MODE, "tabindexSaveFileDialogDrive"), | 493 TestParameter(NOT_IN_GUEST_MODE, "tabindexSaveFileDialogDrive"), |
| 505 TestParameter(NOT_IN_GUEST_MODE, "tabindexSaveFileDialogDownloads"), | 494 TestParameter(NOT_IN_GUEST_MODE, "tabindexSaveFileDialogDownloads"), |
| 506 TestParameter(IN_GUEST_MODE, "tabindexSaveFileDialogDownloads"))); | 495 TestParameter(IN_GUEST_MODE, "tabindexSaveFileDialogDownloads"))); |
| 507 | 496 |
| 508 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) | 497 #if defined(DISABLE_SLOW_FILESAPP_TESTS) || defined(OFFICIAL_BUILD) |
| 509 #define MAYBE_OpenFileDialog DISABLED_OpenFileDialog | 498 #define MAYBE_OpenFileDialog DISABLED_OpenFileDialog |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsUsbToDrive"), | 530 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsUsbToDrive"), |
| 542 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsDriveToLocal"), | 531 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsDriveToLocal"), |
| 543 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsDriveToUsb"), | 532 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsDriveToUsb"), |
| 544 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsUsbToLocal"))); | 533 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsUsbToLocal"))); |
| 545 | 534 |
| 546 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 535 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 547 #define MAYBE_ShowGridView DISABLED_ShowGridView | 536 #define MAYBE_ShowGridView DISABLED_ShowGridView |
| 548 #else | 537 #else |
| 549 #define MAYBE_ShowGridView ShowGridView | 538 #define MAYBE_ShowGridView ShowGridView |
| 550 #endif | 539 #endif |
| 551 // Flaky: crbug.com/698772 | |
| 552 WRAPPED_INSTANTIATE_TEST_CASE_P( | 540 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 553 DISABLED_ShowGridView, | 541 MAYBE_ShowGridView, |
| 554 FileManagerBrowserTest, | 542 FileManagerBrowserTest, |
| 555 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "showGridViewDownloads"), | 543 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "showGridViewDownloads"), |
| 556 TestParameter(IN_GUEST_MODE, "showGridViewDownloads"), | 544 TestParameter(IN_GUEST_MODE, "showGridViewDownloads"), |
| 557 TestParameter(NOT_IN_GUEST_MODE, "showGridViewDrive"))); | 545 TestParameter(NOT_IN_GUEST_MODE, "showGridViewDrive"))); |
| 558 | 546 |
| 559 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 547 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 560 #define MAYBE_Providers DISABLED_Providers | 548 #define MAYBE_Providers DISABLED_Providers |
| 561 #else | 549 #else |
| 562 #define MAYBE_Providers Providers | 550 #define MAYBE_Providers Providers |
| 563 #endif | 551 #endif |
| 564 WRAPPED_INSTANTIATE_TEST_CASE_P( | 552 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 565 MAYBE_Providers, | 553 MAYBE_Providers, |
| 566 FileManagerBrowserTest, | 554 FileManagerBrowserTest, |
| 567 ::testing::Values( | 555 ::testing::Values( |
| 568 TestParameter(NOT_IN_GUEST_MODE, "requestMount"), | 556 TestParameter(NOT_IN_GUEST_MODE, "requestMount"), |
| 569 TestParameter(NOT_IN_GUEST_MODE, "requestMountMultipleMounts"), | 557 TestParameter(NOT_IN_GUEST_MODE, "requestMountMultipleMounts"), |
| 570 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceDevice"))); | 558 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceDevice"), |
| 571 // Flaky: crbug.com/702119. | 559 TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceFile"))); |
| 572 // TestParameter(NOT_IN_GUEST_MODE, "requestMountSourceFile"))); | |
| 573 | 560 |
| 574 #if defined(DISABLE_SLOW_FILESAPP_TESTS) | 561 #if defined(DISABLE_SLOW_FILESAPP_TESTS) |
| 575 #define MAYBE_GearMenu DISABLED_GearMenu | 562 #define MAYBE_GearMenu DISABLED_GearMenu |
| 576 #else | 563 #else |
| 577 #define MAYBE_GearMenu GearMenu | 564 #define MAYBE_GearMenu GearMenu |
| 578 #endif | 565 #endif |
| 579 WRAPPED_INSTANTIATE_TEST_CASE_P( | 566 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 580 DISABLED_GearMenu, | 567 DISABLED_GearMenu, |
| 581 FileManagerBrowserTest, | 568 FileManagerBrowserTest, |
| 582 ::testing::Values( | 569 ::testing::Values( |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 696 |
| 710 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) { | 697 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) { |
| 711 AddAllUsers(); | 698 AddAllUsers(); |
| 712 | 699 |
| 713 // Sanity check that normal operations work in multi-profile setting as well. | 700 // Sanity check that normal operations work in multi-profile setting as well. |
| 714 set_test_case_name("keyboardCopyDrive"); | 701 set_test_case_name("keyboardCopyDrive"); |
| 715 StartTest(); | 702 StartTest(); |
| 716 } | 703 } |
| 717 | 704 |
| 718 } // namespace file_manager | 705 } // namespace file_manager |
| OLD | NEW |