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

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

Issue 289083004: infobars: Componentize ConfirmInfoBarDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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"
(...skipping 24 matching lines...) Expand all
35 #include "chrome/browser/download/download_service.h" 35 #include "chrome/browser/download/download_service.h"
36 #include "chrome/browser/download/download_service_factory.h" 36 #include "chrome/browser/download/download_service_factory.h"
37 #include "chrome/browser/download/download_shelf.h" 37 #include "chrome/browser/download/download_shelf.h"
38 #include "chrome/browser/download/download_target_determiner.h" 38 #include "chrome/browser/download/download_target_determiner.h"
39 #include "chrome/browser/download/download_test_file_activity_observer.h" 39 #include "chrome/browser/download/download_test_file_activity_observer.h"
40 #include "chrome/browser/extensions/extension_install_prompt.h" 40 #include "chrome/browser/extensions/extension_install_prompt.h"
41 #include "chrome/browser/extensions/extension_service.h" 41 #include "chrome/browser/extensions/extension_service.h"
42 #include "chrome/browser/history/download_row.h" 42 #include "chrome/browser/history/download_row.h"
43 #include "chrome/browser/history/history_service.h" 43 #include "chrome/browser/history/history_service.h"
44 #include "chrome/browser/history/history_service_factory.h" 44 #include "chrome/browser/history/history_service_factory.h"
45 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
46 #include "chrome/browser/infobars/infobar_service.h" 45 #include "chrome/browser/infobars/infobar_service.h"
47 #include "chrome/browser/net/url_request_mock_util.h" 46 #include "chrome/browser/net/url_request_mock_util.h"
48 #include "chrome/browser/profiles/profile.h" 47 #include "chrome/browser/profiles/profile.h"
49 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h" 48 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h"
50 #include "chrome/browser/ui/browser.h" 49 #include "chrome/browser/ui/browser.h"
51 #include "chrome/browser/ui/browser_commands.h" 50 #include "chrome/browser/ui/browser_commands.h"
52 #include "chrome/browser/ui/browser_finder.h" 51 #include "chrome/browser/ui/browser_finder.h"
53 #include "chrome/browser/ui/browser_list.h" 52 #include "chrome/browser/ui/browser_list.h"
54 #include "chrome/browser/ui/browser_tabstrip.h" 53 #include "chrome/browser/ui/browser_tabstrip.h"
55 #include "chrome/browser/ui/browser_window.h" 54 #include "chrome/browser/ui/browser_window.h"
56 #include "chrome/browser/ui/chrome_pages.h" 55 #include "chrome/browser/ui/chrome_pages.h"
57 #include "chrome/browser/ui/host_desktop.h" 56 #include "chrome/browser/ui/host_desktop.h"
58 #include "chrome/browser/ui/tabs/tab_strip_model.h" 57 #include "chrome/browser/ui/tabs/tab_strip_model.h"
59 #include "chrome/common/chrome_paths.h" 58 #include "chrome/common/chrome_paths.h"
60 #include "chrome/common/pref_names.h" 59 #include "chrome/common/pref_names.h"
61 #include "chrome/common/url_constants.h" 60 #include "chrome/common/url_constants.h"
62 #include "chrome/test/base/in_process_browser_test.h" 61 #include "chrome/test/base/in_process_browser_test.h"
63 #include "chrome/test/base/test_switches.h" 62 #include "chrome/test/base/test_switches.h"
64 #include "chrome/test/base/ui_test_utils.h" 63 #include "chrome/test/base/ui_test_utils.h"
64 #include "components/infobars/core/confirm_infobar_delegate.h"
65 #include "components/infobars/core/infobar.h" 65 #include "components/infobars/core/infobar.h"
66 #include "content/public/browser/download_interrupt_reasons.h" 66 #include "content/public/browser/download_interrupt_reasons.h"
67 #include "content/public/browser/download_item.h" 67 #include "content/public/browser/download_item.h"
68 #include "content/public/browser/download_manager.h" 68 #include "content/public/browser/download_manager.h"
69 #include "content/public/browser/download_save_info.h" 69 #include "content/public/browser/download_save_info.h"
70 #include "content/public/browser/download_url_parameters.h" 70 #include "content/public/browser/download_url_parameters.h"
71 #include "content/public/browser/notification_source.h" 71 #include "content/public/browser/notification_source.h"
72 #include "content/public/browser/render_frame_host.h" 72 #include "content/public/browser/render_frame_host.h"
73 #include "content/public/browser/render_view_host.h" 73 #include "content/public/browser/render_view_host.h"
74 #include "content/public/browser/resource_context.h" 74 #include "content/public/browser/resource_context.h"
(...skipping 3148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 IN_PROC_BROWSER_TEST_F(DownloadTest, DownloadTest_GZipWithNoContent) { 3223 IN_PROC_BROWSER_TEST_F(DownloadTest, DownloadTest_GZipWithNoContent) {
3224 ASSERT_TRUE(test_server()->Start()); 3224 ASSERT_TRUE(test_server()->Start());
3225 GURL url(test_server()->GetURL("files/downloads/empty.bin")); 3225 GURL url(test_server()->GetURL("files/downloads/empty.bin"));
3226 // Downloading the same URL twice causes the second request to be served from 3226 // Downloading the same URL twice causes the second request to be served from
3227 // cached (with a high probability). This test verifies that that doesn't 3227 // cached (with a high probability). This test verifies that that doesn't
3228 // happen regardless of whether the request is served via the cache or from 3228 // happen regardless of whether the request is served via the cache or from
3229 // the network. 3229 // the network.
3230 DownloadAndWait(browser(), url); 3230 DownloadAndWait(browser(), url);
3231 DownloadAndWait(browser(), url); 3231 DownloadAndWait(browser(), url);
3232 } 3232 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.cc ('k') | chrome/browser/download/download_request_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698