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 <algorithm> | 11 #include <algorithm> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/files/file_path_watcher.h" | 17 #include "base/files/file_path_watcher.h" |
18 #include "base/platform_file.h" | 18 #include "base/platform_file.h" |
19 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
20 #include "base/time.h" | 20 #include "base/time.h" |
21 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
22 #include "chrome/browser/extensions/component_loader.h" | 22 #include "chrome/browser/extensions/component_loader.h" |
23 #include "chrome/browser/extensions/extension_apitest.h" | 23 #include "chrome/browser/extensions/extension_apitest.h" |
24 #include "chrome/browser/extensions/extension_service.h" | 24 #include "chrome/browser/extensions/extension_service.h" |
25 #include "chrome/browser/extensions/extension_test_message_listener.h" | 25 #include "chrome/browser/extensions/extension_test_message_listener.h" |
26 #include "chrome/browser/profiles/profile.h" | |
27 #include "chrome/browser/ui/browser_window.h" | 26 #include "chrome/browser/ui/browser_window.h" |
28 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 27 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
29 #include "chrome/common/extensions/extension.h" | 28 #include "chrome/common/extensions/extension.h" |
30 #include "chrome/test/base/ui_test_utils.h" | 29 #include "chrome/test/base/ui_test_utils.h" |
31 #include "content/public/browser/browser_context.h" | 30 #include "content/public/browser/browser_context.h" |
32 #include "content/public/browser/render_view_host.h" | 31 #include "content/public/browser/render_view_host.h" |
33 #include "webkit/fileapi/external_mount_points.h" | 32 #include "webkit/fileapi/external_mount_points.h" |
34 | 33 |
35 namespace { | 34 namespace { |
36 | 35 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 watcher.StartAndWaitUntilReady(); | 333 watcher.StartAndWaitUntilReady(); |
335 | 334 |
336 ResultCatcher catcher; | 335 ResultCatcher catcher; |
337 StartTest("keyboard delete"); | 336 StartTest("keyboard delete"); |
338 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); | 337 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); |
339 | 338 |
340 ASSERT_TRUE(watcher.RunMessageLoopUntilConditionSatisfied()); | 339 ASSERT_TRUE(watcher.RunMessageLoopUntilConditionSatisfied()); |
341 } | 340 } |
342 | 341 |
343 } // namespace | 342 } // namespace |
OLD | NEW |