Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: chrome/browser/download/download_browsertest.cc

Issue 18640003: Updates some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include <sstream> 5 #include <sstream>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/strings/string_split.h" 17 #include "base/strings/string_split.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "base/sys_info.h" 20 #include "base/sys_info.h"
21 #include "base/test/test_file_util.h" 21 #include "base/test/test_file_util.h"
22 #include "chrome/app/chrome_command_ids.h" 22 #include "chrome/app/chrome_command_ids.h"
23 #include "chrome/browser/browser_process.h" 23 #include "chrome/browser/browser_process.h"
24 #include "chrome/browser/chrome_notification_types.h"
24 #include "chrome/browser/common/cancelable_request.h" 25 #include "chrome/browser/common/cancelable_request.h"
25 #include "chrome/browser/download/chrome_download_manager_delegate.h" 26 #include "chrome/browser/download/chrome_download_manager_delegate.h"
26 #include "chrome/browser/download/download_crx_util.h" 27 #include "chrome/browser/download/download_crx_util.h"
27 #include "chrome/browser/download/download_history.h" 28 #include "chrome/browser/download/download_history.h"
28 #include "chrome/browser/download/download_item_model.h" 29 #include "chrome/browser/download/download_item_model.h"
29 #include "chrome/browser/download/download_prefs.h" 30 #include "chrome/browser/download/download_prefs.h"
30 #include "chrome/browser/download/download_request_limiter.h" 31 #include "chrome/browser/download/download_request_limiter.h"
31 #include "chrome/browser/download/download_service.h" 32 #include "chrome/browser/download/download_service.h"
32 #include "chrome/browser/download/download_service_factory.h" 33 #include "chrome/browser/download/download_service_factory.h"
33 #include "chrome/browser/download/download_shelf.h" 34 #include "chrome/browser/download/download_shelf.h"
(...skipping 12 matching lines...) Expand all
46 #include "chrome/browser/tab_contents/render_view_context_menu.h" 47 #include "chrome/browser/tab_contents/render_view_context_menu.h"
47 #include "chrome/browser/ui/browser.h" 48 #include "chrome/browser/ui/browser.h"
48 #include "chrome/browser/ui/browser_commands.h" 49 #include "chrome/browser/ui/browser_commands.h"
49 #include "chrome/browser/ui/browser_finder.h" 50 #include "chrome/browser/ui/browser_finder.h"
50 #include "chrome/browser/ui/browser_list.h" 51 #include "chrome/browser/ui/browser_list.h"
51 #include "chrome/browser/ui/browser_tabstrip.h" 52 #include "chrome/browser/ui/browser_tabstrip.h"
52 #include "chrome/browser/ui/browser_window.h" 53 #include "chrome/browser/ui/browser_window.h"
53 #include "chrome/browser/ui/chrome_pages.h" 54 #include "chrome/browser/ui/chrome_pages.h"
54 #include "chrome/browser/ui/host_desktop.h" 55 #include "chrome/browser/ui/host_desktop.h"
55 #include "chrome/browser/ui/tabs/tab_strip_model.h" 56 #include "chrome/browser/ui/tabs/tab_strip_model.h"
56 #include "chrome/common/chrome_notification_types.h"
57 #include "chrome/common/chrome_paths.h" 57 #include "chrome/common/chrome_paths.h"
58 #include "chrome/common/extensions/feature_switch.h" 58 #include "chrome/common/extensions/feature_switch.h"
59 #include "chrome/common/pref_names.h" 59 #include "chrome/common/pref_names.h"
60 #include "chrome/common/url_constants.h" 60 #include "chrome/common/url_constants.h"
61 #include "chrome/test/base/in_process_browser_test.h" 61 #include "chrome/test/base/in_process_browser_test.h"
62 #include "chrome/test/base/ui_test_utils.h" 62 #include "chrome/test/base/ui_test_utils.h"
63 #include "content/public/browser/download_item.h" 63 #include "content/public/browser/download_item.h"
64 #include "content/public/browser/download_manager.h" 64 #include "content/public/browser/download_manager.h"
65 #include "content/public/browser/download_save_info.h" 65 #include "content/public/browser/download_save_info.h"
66 #include "content/public/browser/download_url_parameters.h" 66 #include "content/public/browser/download_url_parameters.h"
(...skipping 3153 matching lines...) Expand 10 before | Expand all | Expand 10 after
3220 3220
3221 // No errors this time. The download should complete successfully. 3221 // No errors this time. The download should complete successfully.
3222 EXPECT_FALSE(completion_observer->IsFinished()); 3222 EXPECT_FALSE(completion_observer->IsFinished());
3223 completion_observer->StartObserving(); 3223 completion_observer->StartObserving();
3224 download->Resume(); 3224 download->Resume();
3225 completion_observer->WaitForFinished(); 3225 completion_observer->WaitForFinished();
3226 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState()); 3226 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState());
3227 3227
3228 EXPECT_FALSE(DidShowFileChooser()); 3228 EXPECT_FALSE(DidShowFileChooser());
3229 } 3229 }
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_crx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698