| 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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) { | 1214 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, MAYBE_BasicDrive) { |
| 1215 AddAllUsers(); | 1215 AddAllUsers(); |
| 1216 | 1216 |
| 1217 // Sanity check that normal operations work in multi-profile setting as well. | 1217 // Sanity check that normal operations work in multi-profile setting as well. |
| 1218 set_test_case_name("keyboardCopyDrive"); | 1218 set_test_case_name("keyboardCopyDrive"); |
| 1219 StartTest(); | 1219 StartTest(); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 // Slow tests are disabled on debug build. http://crbug.com/327719 | |
| 1223 #if !defined(NDEBUG) | |
| 1224 #define MAYBE_PRE_VisitDesktopMenu DISABLED_PRE_VisitDesktopMenu | |
| 1225 #define MAYBE_VisitDesktopMenu DISABLED_VisitDesktopMenu | |
| 1226 #else | |
| 1227 #define MAYBE_PRE_VisitDesktopMenu PRE_VisitDesktopMenu | |
| 1228 #define MAYBE_VisitDesktopMenu VisitDesktopMenu | |
| 1229 #endif | |
| 1230 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, | |
| 1231 MAYBE_PRE_VisitDesktopMenu) { | |
| 1232 AddAllUsers(); | |
| 1233 } | |
| 1234 | |
| 1235 IN_PROC_BROWSER_TEST_F(MultiProfileFileManagerBrowserTest, | |
| 1236 MAYBE_VisitDesktopMenu) { | |
| 1237 // Test for the menu item for visiting other profile's desktop. | |
| 1238 set_test_case_name("multiProfileVisitDesktopMenu"); | |
| 1239 StartTest(); | |
| 1240 } | |
| 1241 | |
| 1242 template<GuestMode M> | 1222 template<GuestMode M> |
| 1243 class GalleryBrowserTestBase : public FileManagerBrowserTestBase { | 1223 class GalleryBrowserTestBase : public FileManagerBrowserTestBase { |
| 1244 public: | 1224 public: |
| 1245 virtual GuestMode GetGuestModeParam() const OVERRIDE { return M; } | 1225 virtual GuestMode GetGuestModeParam() const OVERRIDE { return M; } |
| 1246 virtual const char* GetTestCaseNameParam() const OVERRIDE { | 1226 virtual const char* GetTestCaseNameParam() const OVERRIDE { |
| 1247 return test_case_name_.c_str(); | 1227 return test_case_name_.c_str(); |
| 1248 } | 1228 } |
| 1249 | 1229 |
| 1250 protected: | 1230 protected: |
| 1251 virtual void SetUp() OVERRIDE { | 1231 virtual void SetUp() OVERRIDE { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 } | 1479 } |
| 1500 | 1480 |
| 1501 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { | 1481 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { |
| 1502 AddScript("video_player/open_video_files.js"); | 1482 AddScript("video_player/open_video_files.js"); |
| 1503 set_test_case_name("openSingleVideoOnDrive"); | 1483 set_test_case_name("openSingleVideoOnDrive"); |
| 1504 StartTest(); | 1484 StartTest(); |
| 1505 } | 1485 } |
| 1506 | 1486 |
| 1507 } // namespace | 1487 } // namespace |
| 1508 } // namespace file_manager | 1488 } // namespace file_manager |
| OLD | NEW |