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 |
11 #include <deque> | 11 #include <deque> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "chrome/browser/chrome_notification_types.h" |
19 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 20 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
20 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 21 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
21 #include "chrome/browser/chromeos/extensions/file_manager/drive_test_util.h" | 22 #include "chrome/browser/chromeos/extensions/file_manager/drive_test_util.h" |
22 #include "chrome/browser/drive/fake_drive_service.h" | 23 #include "chrome/browser/drive/fake_drive_service.h" |
23 #include "chrome/browser/extensions/api/test/test_api.h" | 24 #include "chrome/browser/extensions/api/test/test_api.h" |
24 #include "chrome/browser/extensions/component_loader.h" | 25 #include "chrome/browser/extensions/component_loader.h" |
25 #include "chrome/browser/extensions/extension_apitest.h" | 26 #include "chrome/browser/extensions/extension_apitest.h" |
26 #include "chrome/browser/extensions/extension_test_message_listener.h" | 27 #include "chrome/browser/extensions/extension_test_message_listener.h" |
27 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 28 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
28 #include "chrome/browser/google_apis/test_util.h" | 29 #include "chrome/browser/google_apis/test_util.h" |
29 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/common/chrome_notification_types.h" | |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/extensions/extension.h" | 32 #include "chrome/common/extensions/extension.h" |
33 #include "chromeos/chromeos_switches.h" | 33 #include "chromeos/chromeos_switches.h" |
34 #include "content/public/browser/browser_context.h" | 34 #include "content/public/browser/browser_context.h" |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/test/test_utils.h" | 36 #include "content/public/test/test_utils.h" |
37 #include "webkit/browser/fileapi/external_mount_points.h" | 37 #include "webkit/browser/fileapi/external_mount_points.h" |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 TestParameter(NOT_IN_GUEST_MODE, "hideSearchBox"))); | 503 TestParameter(NOT_IN_GUEST_MODE, "hideSearchBox"))); |
504 | 504 |
505 INSTANTIATE_TEST_CASE_P( | 505 INSTANTIATE_TEST_CASE_P( |
506 RestorePrefs, | 506 RestorePrefs, |
507 FileManagerBrowserTest, | 507 FileManagerBrowserTest, |
508 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), | 508 ::testing::Values(TestParameter(IN_GUEST_MODE, "restoreSortColumn"), |
509 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), | 509 TestParameter(NOT_IN_GUEST_MODE, "restoreSortColumn"), |
510 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), | 510 TestParameter(IN_GUEST_MODE, "restoreCurrentView"), |
511 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); | 511 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); |
512 } // namespace | 512 } // namespace |
OLD | NEW |