Chromium Code Reviews| 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 // 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 954 #else | 954 #else |
| 955 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads | 955 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads |
| 956 #endif | 956 #endif |
| 957 WRAPPED_INSTANTIATE_TEST_CASE_P( | 957 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 958 MAYBE_ExecuteDefaultTaskOnDownloads, | 958 MAYBE_ExecuteDefaultTaskOnDownloads, |
| 959 FileManagerBrowserTest, | 959 FileManagerBrowserTest, |
| 960 ::testing::Values( | 960 ::testing::Values( |
| 961 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), | 961 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), |
| 962 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); | 962 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); |
| 963 | 963 |
| 964 // Slow tests are disabled on debug build. http://crbug.com/327719 | |
| 965 #if !defined(NDEBUG) | |
| 966 #define MAYBE_ExecuteDefaultTaskOnDrive \ | |
| 967 DISABLED_ExecuteDefaultTaskOnDrive | |
|
yoshiki
2014/06/13 12:07:06
nit: 4 space
hirono
2014/06/16 03:51:09
This becomes 2 spaces after git cl format.
| |
| 968 #else | |
| 969 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive | |
| 970 #endif | |
| 964 INSTANTIATE_TEST_CASE_P( | 971 INSTANTIATE_TEST_CASE_P( |
| 965 ExecuteDefaultTaskOnDrive, | 972 ExecuteDefaultTaskOnDrive, |
| 966 FileManagerBrowserTest, | 973 FileManagerBrowserTest, |
| 967 ::testing::Values( | 974 ::testing::Values( |
| 968 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); | 975 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); |
| 969 | 976 |
| 970 // Slow tests are disabled on debug build. http://crbug.com/327719 | 977 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 971 #if !defined(NDEBUG) | 978 #if !defined(NDEBUG) |
| 979 #define MAYBE_DefaultActionDialog \ | |
| 980 DISABLED_DefaultActionDialog | |
|
yoshiki
2014/06/13 12:07:06
ditto
hirono
2014/06/16 03:51:09
Done.
| |
| 981 #else | |
| 982 #define MAYBE_DefaultActionDialog DefaultActionDialog | |
| 983 #endif | |
| 984 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 985 MAYBE_DefaultActionDialog, | |
| 986 FileManagerBrowserTest, | |
| 987 ::testing::Values( | |
| 988 TestParameter(NOT_IN_GUEST_MODE, "defaultActionDialogOnDownloads"), | |
| 989 TestParameter(IN_GUEST_MODE, "defaultActionDialogOnDownloads"), | |
| 990 TestParameter(NOT_IN_GUEST_MODE, "defaultActionDialogOnDrive"))); | |
| 991 | |
| 992 // Slow tests are disabled on debug build. http://crbug.com/327719 | |
| 993 #if !defined(NDEBUG) | |
| 972 #define MAYBE_NavigationList DISABLED_NavigationList | 994 #define MAYBE_NavigationList DISABLED_NavigationList |
| 973 #else | 995 #else |
| 974 #define MAYBE_NavigationList NavigationList | 996 #define MAYBE_NavigationList NavigationList |
| 975 #endif | 997 #endif |
| 976 WRAPPED_INSTANTIATE_TEST_CASE_P( | 998 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 977 MAYBE_NavigationList, | 999 MAYBE_NavigationList, |
| 978 FileManagerBrowserTest, | 1000 FileManagerBrowserTest, |
| 979 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 1001 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 980 "traverseNavigationList"))); | 1002 "traverseNavigationList"))); |
| 981 | 1003 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1363 } | 1385 } |
| 1364 | 1386 |
| 1365 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, DeleteImageOnDrive) { | 1387 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, DeleteImageOnDrive) { |
| 1366 AddScript("gallery/slide_mode.js"); | 1388 AddScript("gallery/slide_mode.js"); |
| 1367 set_test_case_name("deleteImageOnDrive"); | 1389 set_test_case_name("deleteImageOnDrive"); |
| 1368 StartTest(); | 1390 StartTest(); |
| 1369 } | 1391 } |
| 1370 | 1392 |
| 1371 } // namespace | 1393 } // namespace |
| 1372 } // namespace file_manager | 1394 } // namespace file_manager |
| OLD | NEW |