OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Disable everything on windows only. http://crbug.com/306144 | 5 // Disable everything on windows only. http://crbug.com/306144 |
6 #ifndef OS_WIN | 6 #ifndef OS_WIN |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "chrome/browser/download/download_file_icon_extractor.h" | 18 #include "chrome/browser/download/download_file_icon_extractor.h" |
19 #include "chrome/browser/download/download_service.h" | 19 #include "chrome/browser/download/download_service.h" |
20 #include "chrome/browser/download/download_service_factory.h" | 20 #include "chrome/browser/download/download_service_factory.h" |
21 #include "chrome/browser/download/download_test_file_activity_observer.h" | 21 #include "chrome/browser/download/download_test_file_activity_observer.h" |
22 #include "chrome/browser/extensions/api/downloads/downloads_api.h" | 22 #include "chrome/browser/extensions/api/downloads/downloads_api.h" |
23 #include "chrome/browser/extensions/browser_action_test_util.h" | 23 #include "chrome/browser/extensions/browser_action_test_util.h" |
24 #include "chrome/browser/extensions/extension_apitest.h" | 24 #include "chrome/browser/extensions/extension_apitest.h" |
25 #include "chrome/browser/extensions/extension_function_test_utils.h" | 25 #include "chrome/browser/extensions/extension_function_test_utils.h" |
26 #include "chrome/browser/history/download_row.h" | |
27 #include "chrome/browser/net/url_request_mock_util.h" | 26 #include "chrome/browser/net/url_request_mock_util.h" |
28 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/browser/ui/browser.h" | 28 #include "chrome/browser/ui/browser.h" |
30 #include "chrome/browser/ui/browser_tabstrip.h" | 29 #include "chrome/browser/ui/browser_tabstrip.h" |
31 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
32 #include "chrome/test/base/in_process_browser_test.h" | 31 #include "chrome/test/base/in_process_browser_test.h" |
33 #include "chrome/test/base/ui_test_utils.h" | 32 #include "chrome/test/base/ui_test_utils.h" |
34 #include "content/public/browser/browser_context.h" | 33 #include "content/public/browser/browser_context.h" |
35 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
36 #include "content/public/browser/download_item.h" | 35 #include "content/public/browser/download_item.h" |
(...skipping 4115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4152 EXPECT_EQ(downloads::FILENAME_CONFLICT_ACTION_PROMPT, conflict_action); | 4151 EXPECT_EQ(downloads::FILENAME_CONFLICT_ACTION_PROMPT, conflict_action); |
4153 EXPECT_FALSE(warnings.empty()); | 4152 EXPECT_FALSE(warnings.empty()); |
4154 EXPECT_EQ(Warning::kDownloadFilenameConflict, | 4153 EXPECT_EQ(Warning::kDownloadFilenameConflict, |
4155 warnings.begin()->warning_type()); | 4154 warnings.begin()->warning_type()); |
4156 EXPECT_EQ("incumbent", warnings.begin()->extension_id()); | 4155 EXPECT_EQ("incumbent", warnings.begin()->extension_id()); |
4157 } | 4156 } |
4158 | 4157 |
4159 } // namespace extensions | 4158 } // namespace extensions |
4160 | 4159 |
4161 #endif // http://crbug.com/3061144 | 4160 #endif // http://crbug.com/3061144 |
OLD | NEW |