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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 747 } | 747 } |
| 748 virtual const char* GetTestCaseNameParam() const OVERRIDE { | 748 virtual const char* GetTestCaseNameParam() const OVERRIDE { |
| 749 return std::tr1::get<1>(GetParam()); | 749 return std::tr1::get<1>(GetParam()); |
| 750 } | 750 } |
| 751 }; | 751 }; |
| 752 | 752 |
| 753 IN_PROC_BROWSER_TEST_P(FileManagerBrowserTest, Test) { | 753 IN_PROC_BROWSER_TEST_P(FileManagerBrowserTest, Test) { |
| 754 StartTest(); | 754 StartTest(); |
| 755 } | 755 } |
| 756 | 756 |
| 757 INSTANTIATE_TEST_CASE_P( | 757 // Unlike TEST/TEST_F, which are macros that expand to further macros, |
| 758 FileDisplay, | 758 // INSTANTIATE_TEST_CASE_P is a macro that expands directly to code that |
| 759 // stringizes the arguments. As a result, macros passed as parameters (such as | |
| 760 // prefix or test_case_name) will not be expanded by the preprocessor. To work | |
| 761 // around this, indirect the macro for INSTANTIATE_TEST_CASE_P, so that the | |
| 762 // pre-processor will expand macros such as MAYBE_test_name before | |
| 763 // instantiating the test. | |
| 764 #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ | |
| 765 INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) | |
| 766 | |
| 767 // Slow tests are disabled on debug build. http://crbug.com/327719 | |
| 768 #if !defined(NDEBUG) | |
| 769 #define MAYBE_FileDisplay DISABLED_FileDisplay | |
| 770 #else | |
| 771 #define MAYBE_FileDisplay FileDisplay | |
| 772 #endif | |
| 773 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 774 MAYBE_FileDisplay, | |
| 759 FileManagerBrowserTest, | 775 FileManagerBrowserTest, |
| 760 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"), | 776 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"), |
| 761 TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"), | 777 TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"), |
| 762 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDrive"), | 778 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDrive"), |
| 763 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayMtp"))); | 779 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayMtp"))); |
| 764 | 780 |
| 765 INSTANTIATE_TEST_CASE_P( | 781 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 766 OpenZipFiles, | 782 #if !defined(NDEBUG) |
| 783 #define MAYBE_OpenZipFiles DISABLED_OpenZipFiles | |
| 784 #else | |
| 785 #define MAYBE_OpenZipFiles OpenZipFiles | |
| 786 #endif | |
| 787 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 788 MAYBE_OpenZipFiles, | |
| 767 FileManagerBrowserTest, | 789 FileManagerBrowserTest, |
| 768 ::testing::Values(TestParameter(IN_GUEST_MODE, "zipOpenDownloads"), | 790 ::testing::Values(TestParameter(IN_GUEST_MODE, "zipOpenDownloads"), |
| 769 TestParameter(NOT_IN_GUEST_MODE, "zipOpenDownloads"), | 791 TestParameter(NOT_IN_GUEST_MODE, "zipOpenDownloads"), |
| 770 TestParameter(NOT_IN_GUEST_MODE, "zipOpenDrive"))); | 792 TestParameter(NOT_IN_GUEST_MODE, "zipOpenDrive"))); |
| 771 | 793 |
| 772 INSTANTIATE_TEST_CASE_P( | 794 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 773 OpenVideoFiles, | 795 #if !defined(NDEBUG) |
| 796 #define MAYBE_OpenVideoFiles DISABLED_OpenVideoFiles | |
| 797 #else | |
| 798 #define MAYBE_OpenVideoFiles OpenVideoFiles | |
| 799 #endif | |
| 800 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 801 MAYBE_OpenVideoFiles, | |
| 774 FileManagerBrowserTest, | 802 FileManagerBrowserTest, |
| 775 ::testing::Values(TestParameter(IN_GUEST_MODE, "videoOpenDownloads"), | 803 ::testing::Values(TestParameter(IN_GUEST_MODE, "videoOpenDownloads"), |
| 776 TestParameter(NOT_IN_GUEST_MODE, "videoOpenDownloads"), | 804 TestParameter(NOT_IN_GUEST_MODE, "videoOpenDownloads"), |
| 777 TestParameter(NOT_IN_GUEST_MODE, "videoOpenDrive"))); | 805 TestParameter(NOT_IN_GUEST_MODE, "videoOpenDrive"))); |
| 778 | 806 |
| 779 // Disabled due to frequent failure; http://crbug.com/374097. | 807 // Disabled due to frequent failure; http://crbug.com/374097. |
| 780 INSTANTIATE_TEST_CASE_P( | 808 INSTANTIATE_TEST_CASE_P( |
| 781 DISABLED_OpenAudioFiles, | 809 DISABLED_OpenAudioFiles, |
|
kinaba
2014/06/06 07:32:59
I reenabled the test in ToT. Could you rebase and
fukino
2014/06/06 10:56:57
Done.
I reviewed all tests after rebasing, and Ope
| |
| 782 FileManagerBrowserTest, | 810 FileManagerBrowserTest, |
| 783 ::testing::Values( | 811 ::testing::Values( |
| 784 TestParameter(IN_GUEST_MODE, "audioOpenDownloads"), | 812 TestParameter(IN_GUEST_MODE, "audioOpenDownloads"), |
| 785 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDownloads"), | 813 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDownloads"), |
| 786 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDrive"), | 814 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDrive"), |
| 787 TestParameter(NOT_IN_GUEST_MODE, "audioAutoAdvanceDrive"), | 815 TestParameter(NOT_IN_GUEST_MODE, "audioAutoAdvanceDrive"), |
| 788 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatSingleFileDrive"), | 816 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatSingleFileDrive"), |
| 789 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatSingleFileDrive"), | 817 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatSingleFileDrive"), |
| 790 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatMultipleFileDrive"), | 818 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatMultipleFileDrive"), |
| 791 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatMultipleFileDrive"))); | 819 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatMultipleFileDrive"))); |
| 792 | 820 |
| 793 // Disabled due to frequent failure: http://crbug.com/377636 | 821 // Disabled due to frequent failure: http://crbug.com/377636 |
| 794 INSTANTIATE_TEST_CASE_P( | 822 INSTANTIATE_TEST_CASE_P( |
| 795 DISABLED_CreateNewFolder, | 823 DISABLED_CreateNewFolder, |
| 796 FileManagerBrowserTest, | 824 FileManagerBrowserTest, |
| 797 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 825 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 798 "createNewFolderAfterSelectFile"), | 826 "createNewFolderAfterSelectFile"), |
| 799 TestParameter(IN_GUEST_MODE, | 827 TestParameter(IN_GUEST_MODE, |
| 800 "createNewFolderDownloads"), | 828 "createNewFolderDownloads"), |
| 801 TestParameter(NOT_IN_GUEST_MODE, | 829 TestParameter(NOT_IN_GUEST_MODE, |
| 802 "createNewFolderDownloads"), | 830 "createNewFolderDownloads"), |
| 803 TestParameter(NOT_IN_GUEST_MODE, | 831 TestParameter(NOT_IN_GUEST_MODE, |
| 804 "createNewFolderDrive"))); | 832 "createNewFolderDrive"))); |
| 805 | 833 |
| 806 INSTANTIATE_TEST_CASE_P( | 834 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 807 KeyboardOperations, | 835 #if !defined(NDEBUG) |
| 836 #define MAYBE_KeyboardOperations DISABLED_KeyboardOperations | |
| 837 #else | |
| 838 #define MAYBE_KeyboardOperations KeyboardOperations | |
| 839 #endif | |
| 840 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 841 MAYBE_KeyboardOperations, | |
| 808 FileManagerBrowserTest, | 842 FileManagerBrowserTest, |
| 809 ::testing::Values(TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), | 843 ::testing::Values(TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), |
| 810 TestParameter(NOT_IN_GUEST_MODE, | 844 TestParameter(NOT_IN_GUEST_MODE, |
| 811 "keyboardDeleteDownloads"), | 845 "keyboardDeleteDownloads"), |
| 812 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"), | 846 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"), |
| 813 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"), | 847 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"), |
| 814 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"), | 848 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"), |
| 815 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"), | 849 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"), |
| 816 TestParameter(IN_GUEST_MODE, | 850 TestParameter(IN_GUEST_MODE, "renameFileDownloads"), |
| 817 "renameFileDownloads"), | 851 TestParameter(NOT_IN_GUEST_MODE, "renameFileDownloads"), |
| 818 TestParameter(NOT_IN_GUEST_MODE, | 852 TestParameter(NOT_IN_GUEST_MODE, "renameFileDrive"))); |
| 819 "renameFileDownloads"), | |
| 820 TestParameter(NOT_IN_GUEST_MODE, | |
| 821 "renameFileDrive"))); | |
| 822 | 853 |
| 823 // Disabled due to frequent timeouts; http://crbug.com/370980. | 854 // Disabled due to frequent timeouts; http://crbug.com/370980. |
| 824 INSTANTIATE_TEST_CASE_P( | 855 INSTANTIATE_TEST_CASE_P( |
| 825 DISABLED_DriveSpecific, | 856 DISABLED_DriveSpecific, |
| 826 FileManagerBrowserTest, | 857 FileManagerBrowserTest, |
| 827 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "openSidebarRecent"), | 858 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "openSidebarRecent"), |
| 828 TestParameter(NOT_IN_GUEST_MODE, "openSidebarOffline"), | 859 TestParameter(NOT_IN_GUEST_MODE, "openSidebarOffline"), |
| 829 TestParameter(NOT_IN_GUEST_MODE, | 860 TestParameter(NOT_IN_GUEST_MODE, |
| 830 "openSidebarSharedWithMe"), | 861 "openSidebarSharedWithMe"), |
| 831 TestParameter(NOT_IN_GUEST_MODE, "autocomplete"))); | 862 TestParameter(NOT_IN_GUEST_MODE, "autocomplete"))); |
| 832 | 863 |
| 833 INSTANTIATE_TEST_CASE_P( | 864 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 834 Transfer, | 865 #if !defined(NDEBUG) |
| 866 #define MAYBE_Transfer DISABLED_Transfer | |
| 867 #else | |
| 868 #define MAYBE_Transfer Transfer | |
| 869 #endif | |
| 870 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 871 MAYBE_Transfer, | |
| 835 FileManagerBrowserTest, | 872 FileManagerBrowserTest, |
| 836 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 873 ::testing::Values( |
| 837 "transferFromDriveToDownloads"), | 874 TestParameter(NOT_IN_GUEST_MODE, "transferFromDriveToDownloads"), |
| 838 TestParameter(NOT_IN_GUEST_MODE, | 875 TestParameter(NOT_IN_GUEST_MODE, "transferFromDownloadsToDrive"), |
| 839 "transferFromDownloadsToDrive"), | 876 TestParameter(NOT_IN_GUEST_MODE, "transferFromSharedToDownloads"), |
| 840 TestParameter(NOT_IN_GUEST_MODE, | 877 TestParameter(NOT_IN_GUEST_MODE, "transferFromSharedToDrive"), |
| 841 "transferFromSharedToDownloads"), | 878 TestParameter(NOT_IN_GUEST_MODE, "transferFromRecentToDownloads"), |
| 842 TestParameter(NOT_IN_GUEST_MODE, | 879 TestParameter(NOT_IN_GUEST_MODE, "transferFromRecentToDrive"), |
| 843 "transferFromSharedToDrive"), | 880 TestParameter(NOT_IN_GUEST_MODE, "transferFromOfflineToDownloads"), |
| 844 TestParameter(NOT_IN_GUEST_MODE, | 881 TestParameter(NOT_IN_GUEST_MODE, "transferFromOfflineToDrive"))); |
| 845 "transferFromRecentToDownloads"), | |
| 846 TestParameter(NOT_IN_GUEST_MODE, | |
| 847 "transferFromRecentToDrive"), | |
| 848 TestParameter(NOT_IN_GUEST_MODE, | |
| 849 "transferFromOfflineToDownloads"), | |
| 850 TestParameter(NOT_IN_GUEST_MODE, | |
| 851 "transferFromOfflineToDrive"))); | |
| 852 | 882 |
| 853 INSTANTIATE_TEST_CASE_P( | 883 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 854 RestorePrefs, | 884 #if !defined(NDEBUG) |
| 885 #define MAYBE_RestorePrefs DISABLED_RestorePrefs | |
| 886 #else | |
| 887 #define MAYBE_RestorePrefs RestorePrefs | |
| 888 #endif | |
| 889 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 890 MAYBE_RestorePrefs, | |
| 855 FileManagerBrowserTest, | 891 FileManagerBrowserTest, |
| 856 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), | 892 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), |
| 857 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), | 893 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), |
| 858 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), | 894 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), |
| 859 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); | 895 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); |
| 860 | 896 |
| 861 INSTANTIATE_TEST_CASE_P( | 897 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 862 ShareDialog, | 898 #if !defined(NDEBUG) |
| 899 #define MAYBE_ShareDialog DISABLED_ShareDialog | |
| 900 #else | |
| 901 #define MAYBE_ShareDialog ShareDialog | |
| 902 #endif | |
| 903 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 904 MAYBE_ShareDialog, | |
| 863 FileManagerBrowserTest, | 905 FileManagerBrowserTest, |
| 864 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "shareFile"), | 906 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "shareFile"), |
| 865 TestParameter(NOT_IN_GUEST_MODE, "shareDirectory"))); | 907 TestParameter(NOT_IN_GUEST_MODE, "shareDirectory"))); |
| 866 | 908 |
| 867 INSTANTIATE_TEST_CASE_P( | 909 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 868 RestoreGeometry, | 910 #if !defined(NDEBUG) |
| 911 #define MAYBE_RestoreGeometry DISABLED_RestoreGeometry | |
| 912 #else | |
| 913 #define MAYBE_RestoreGeometry RestoreGeometry | |
| 914 #endif | |
| 915 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 916 MAYBE_RestoreGeometry, | |
| 869 FileManagerBrowserTest, | 917 FileManagerBrowserTest, |
| 870 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "restoreGeometry"), | 918 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "restoreGeometry"), |
| 871 TestParameter(IN_GUEST_MODE, "restoreGeometry"))); | 919 TestParameter(IN_GUEST_MODE, "restoreGeometry"))); |
| 872 | 920 |
| 873 INSTANTIATE_TEST_CASE_P( | 921 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 874 Traverse, | 922 #if !defined(NDEBUG) |
| 923 #define MAYBE_Traverse DISABLED_Traverse | |
| 924 #else | |
| 925 #define MAYBE_Traverse Traverse | |
| 926 #endif | |
| 927 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 928 MAYBE_Traverse, | |
| 875 FileManagerBrowserTest, | 929 FileManagerBrowserTest, |
| 876 ::testing::Values(TestParameter(IN_GUEST_MODE, "traverseDownloads"), | 930 ::testing::Values(TestParameter(IN_GUEST_MODE, "traverseDownloads"), |
| 877 TestParameter(NOT_IN_GUEST_MODE, "traverseDownloads"), | 931 TestParameter(NOT_IN_GUEST_MODE, "traverseDownloads"), |
| 878 TestParameter(NOT_IN_GUEST_MODE, "traverseDrive"))); | 932 TestParameter(NOT_IN_GUEST_MODE, "traverseDrive"))); |
| 879 | 933 |
| 880 INSTANTIATE_TEST_CASE_P( | 934 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 881 SuggestAppDialog, | 935 #if !defined(NDEBUG) |
| 936 #define MAYBE_SuggestAppDialog DISABLED_SuggestAppDialog | |
| 937 #else | |
| 938 #define MAYBE_SuggestAppDialog SuggestAppDialog | |
| 939 #endif | |
| 940 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 941 MAYBE_SuggestAppDialog, | |
| 882 FileManagerBrowserTest, | 942 FileManagerBrowserTest, |
| 883 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "suggestAppDialog"))); | 943 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "suggestAppDialog"))); |
| 884 | 944 |
| 885 INSTANTIATE_TEST_CASE_P( | 945 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 886 ExecuteDefaultTaskOnDownloads, | 946 #if !defined(NDEBUG) |
| 947 #define MAYBE_ExecuteDefaultTaskOnDownloads \ | |
| 948 DISABLED_ExecuteDefaultTaskOnDownloads | |
| 949 #else | |
| 950 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads | |
| 951 #endif | |
| 952 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 953 MAYBE_ExecuteDefaultTaskOnDownloads, | |
| 887 FileManagerBrowserTest, | 954 FileManagerBrowserTest, |
| 888 ::testing::Values( | 955 ::testing::Values( |
| 889 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), | 956 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), |
| 890 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); | 957 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); |
| 891 | 958 |
| 892 INSTANTIATE_TEST_CASE_P( | 959 INSTANTIATE_TEST_CASE_P( |
| 893 ExecuteDefaultTaskOnDrive, | 960 ExecuteDefaultTaskOnDrive, |
| 894 FileManagerBrowserTest, | 961 FileManagerBrowserTest, |
| 895 ::testing::Values( | 962 ::testing::Values( |
| 896 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); | 963 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); |
| 897 | 964 |
| 898 INSTANTIATE_TEST_CASE_P( | 965 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 899 NavigationList, | 966 #if !defined(NDEBUG) |
| 967 #define MAYBE_NavigationList DISABLED_NavigationList | |
| 968 #else | |
| 969 #define MAYBE_NavigationList NavigationList | |
| 970 #endif | |
| 971 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 972 MAYBE_NavigationList, | |
| 900 FileManagerBrowserTest, | 973 FileManagerBrowserTest, |
| 901 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 974 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 902 "traverseNavigationList"))); | 975 "traverseNavigationList"))); |
| 903 | 976 |
| 904 INSTANTIATE_TEST_CASE_P( | 977 INSTANTIATE_TEST_CASE_P( |
| 905 TabIndex, | 978 TabIndex, |
| 906 FileManagerBrowserTest, | 979 FileManagerBrowserTest, |
| 907 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); | 980 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); |
| 908 | 981 |
| 909 INSTANTIATE_TEST_CASE_P( | 982 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 910 Thumbnails, | 983 #if !defined(NDEBUG) |
| 984 #define MAYBE_Thumbnails DISABLED_Thumbnails | |
| 985 #else | |
| 986 #define MAYBE_Thumbnails Thumbnails | |
| 987 #endif | |
| 988 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 989 MAYBE_Thumbnails, | |
| 911 FileManagerBrowserTest, | 990 FileManagerBrowserTest, |
| 912 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), | 991 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), |
| 913 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); | 992 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); |
| 914 | 993 |
| 915 // Test/4 has been failing every 3rd or 4th pass on the waterfall for | 994 // Test/4 has been failing every 3rd or 4th pass on the waterfall for |
| 916 // "Linux ChromiumOS Tests (dbg)". | 995 // "Linux ChromiumOS Tests (dbg)". |
| 917 // http://crbug.com/380339 | 996 // http://crbug.com/380339 |
| 918 INSTANTIATE_TEST_CASE_P( | 997 INSTANTIATE_TEST_CASE_P( |
| 919 DISABLED_CopyBetweenWindows, | 998 DISABLED_CopyBetweenWindows, |
| 920 FileManagerBrowserTest, | 999 FileManagerBrowserTest, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1026 return list.size() == 1u ? | 1105 return list.size() == 1u ? |
| 1027 window_manager->GetUserPresentingWindow( | 1106 window_manager->GetUserPresentingWindow( |
| 1028 list.front()->GetNativeWindow()) : ""; | 1107 list.front()->GetNativeWindow()) : ""; |
| 1029 } | 1108 } |
| 1030 return FileManagerBrowserTestBase::OnMessage(name, value); | 1109 return FileManagerBrowserTestBase::OnMessage(name, value); |
| 1031 } | 1110 } |
| 1032 | 1111 |
| 1033 std::string test_case_name_; | 1112 std::string test_case_name_; |
| 1034 }; | 1113 }; |
| 1035 | 1114 |
| 1036 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, PRE_BasicDownloads) { | 1115 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 1116 #if !defined(NDEBUG) | |
| 1117 #define MAYBE_PRE_BasicDownloads DISABLED_PRE_BasicDownloads | |
| 1118 #define MAYBE_BasicDownloads DISABLED_BasicDownloads | |
| 1119 #else | |
| 1120 #define MAYBE_PRE_BasicDownloads PRE_BasicDownloads | |
| 1121 #define MAYBE_BasicDownloads BasicDownloads | |
| 1122 #endif | |
| 1123 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, | |
| 1124 MAYBE_PRE_BasicDownloads) { | |
| 1037 AddAllUsers(); | 1125 AddAllUsers(); |
| 1038 } | 1126 } |
| 1039 | 1127 |
| 1040 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, BasicDownloads) { | 1128 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, |
| 1129 MAYBE_BasicDownloads) { | |
| 1041 AddAllUsers(); | 1130 AddAllUsers(); |
| 1042 | 1131 |
| 1043 // Sanity check that normal operations work in multi-profile setting as well. | 1132 // Sanity check that normal operations work in multi-profile setting as well. |
| 1044 set_test_case_name("keyboardCopyDownloads"); | 1133 set_test_case_name("keyboardCopyDownloads"); |
| 1045 StartTest(); | 1134 StartTest(); |
| 1046 } | 1135 } |
| 1047 | 1136 |
| 1048 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, PRE_BasicDrive) { | 1137 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 1138 #if !defined(NDEBUG) | |
| 1139 #define MAYBE_PRE_BasicDrive DISABLED_PRE_BasicDrive | |
| 1140 #define MAYBE_BasicDrive DISABLED_BasicDrive | |
| 1141 #else | |
| 1142 #define MAYBE_PRE_BasicDrive PRE_BasicDrive | |
| 1143 #define MAYBE_BasicDrive BasicDrive | |
| 1144 #endif | |
| 1145 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, | |
| 1146 MAYBE_PRE_BasicDrive) { | |
| 1049 AddAllUsers(); | 1147 AddAllUsers(); |
| 1050 } | 1148 } |
| 1051 | 1149 |
| 1052 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, BasicDrive) { | 1150 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) { |
| 1053 AddAllUsers(); | 1151 AddAllUsers(); |
| 1054 | 1152 |
| 1055 // Sanity check that normal operations work in multi-profile setting as well. | 1153 // Sanity check that normal operations work in multi-profile setting as well. |
| 1056 set_test_case_name("keyboardCopyDrive"); | 1154 set_test_case_name("keyboardCopyDrive"); |
| 1057 StartTest(); | 1155 StartTest(); |
| 1058 } | 1156 } |
| 1059 | 1157 |
| 1060 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, PRE_Badge) { | 1158 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 1159 #if !defined(NDEBUG) | |
| 1160 #define MAYBE_PRE_Badge DISABLED_PRE_Badge | |
| 1161 #define MAYBE_Badge DISABLED_Badge | |
| 1162 #else | |
| 1163 #define MAYBE_PRE_Badge PRE_Badge | |
| 1164 #define MAYBE_Badge Badge | |
| 1165 #endif | |
| 1166 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_PRE_Badge) { | |
| 1061 AddAllUsers(); | 1167 AddAllUsers(); |
| 1062 } | 1168 } |
| 1063 | 1169 |
| 1064 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, Badge) { | 1170 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_Badge) { |
| 1065 // Test the profile badge to be correctly shown and hidden. | 1171 // Test the profile badge to be correctly shown and hidden. |
| 1066 set_test_case_name("multiProfileBadge"); | 1172 set_test_case_name("multiProfileBadge"); |
| 1067 StartTest(); | 1173 StartTest(); |
| 1068 } | 1174 } |
| 1069 | 1175 |
| 1176 // Slow tests are disabled on debug build. http://crbug.com/327719 | |
| 1177 #if !defined(NDEBUG) | |
| 1178 #define MAYBE_PRE_VisitDesktopMenu DISABLED_PRE_VisitDesktopMenu | |
| 1179 #define MAYBE_VisitDesktopMenu DISABLED_VisitDesktopMenu | |
| 1180 #else | |
| 1181 #define MAYBE_PRE_VisitDesktopMenu PRE_VisitDesktopMenu | |
| 1182 #define MAYBE_VisitDesktopMenu VisitDesktopMenu | |
| 1183 #endif | |
| 1070 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, | 1184 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, |
| 1071 PRE_VisitDesktopMenu) { | 1185 MAYBE_PRE_VisitDesktopMenu) { |
| 1072 AddAllUsers(); | 1186 AddAllUsers(); |
| 1073 } | 1187 } |
| 1074 | 1188 |
| 1075 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, VisitDesktopMenu) { | 1189 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, |
| 1190 MAYBE_VisitDesktopMenu) { | |
| 1076 // Test for the menu item for visiting other profile's desktop. | 1191 // Test for the menu item for visiting other profile's desktop. |
| 1077 set_test_case_name("multiProfileVisitDesktopMenu"); | 1192 set_test_case_name("multiProfileVisitDesktopMenu"); |
| 1078 StartTest(); | 1193 StartTest(); |
| 1079 } | 1194 } |
| 1080 | 1195 |
| 1081 template<GuestMode M> | 1196 template<GuestMode M> |
| 1082 class GalleryBrowserTestBase : public FileManagerBrowserTestBase { | 1197 class GalleryBrowserTestBase : public FileManagerBrowserTestBase { |
| 1083 public: | 1198 public: |
| 1084 virtual GuestMode GetGuestModeParam() const OVERRIDE { return M; } | 1199 virtual GuestMode GetGuestModeParam() const OVERRIDE { return M; } |
| 1085 virtual const char* GetTestCaseNameParam() const OVERRIDE { | 1200 virtual const char* GetTestCaseNameParam() const OVERRIDE { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1136 } | 1251 } |
| 1137 | 1252 |
| 1138 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, OpenSingleImageOnDrive) { | 1253 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, OpenSingleImageOnDrive) { |
| 1139 AddScript("gallery/open_image_files.js"); | 1254 AddScript("gallery/open_image_files.js"); |
| 1140 set_test_case_name("openSingleImageOnDrive"); | 1255 set_test_case_name("openSingleImageOnDrive"); |
| 1141 StartTest(); | 1256 StartTest(); |
| 1142 } | 1257 } |
| 1143 | 1258 |
| 1144 } // namespace | 1259 } // namespace |
| 1145 } // namespace file_manager | 1260 } // namespace file_manager |
| OLD | NEW |