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

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

Issue 833033002: Remove dependency on //content from history DownloadDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests and move download_database.{cc,h} Created 5 years, 11 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
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/files/file.h" 10 #include "base/files/file.h"
(...skipping 22 matching lines...) Expand all
33 #include "chrome/browser/download/download_prefs.h" 33 #include "chrome/browser/download/download_prefs.h"
34 #include "chrome/browser/download/download_request_limiter.h" 34 #include "chrome/browser/download/download_request_limiter.h"
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_install_prompt_show_params.h" 41 #include "chrome/browser/extensions/extension_install_prompt_show_params.h"
42 #include "chrome/browser/extensions/extension_service.h" 42 #include "chrome/browser/extensions/extension_service.h"
43 #include "chrome/browser/history/download_row.h"
44 #include "chrome/browser/history/history_service.h" 43 #include "chrome/browser/history/history_service.h"
45 #include "chrome/browser/history/history_service_factory.h" 44 #include "chrome/browser/history/history_service_factory.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_browsert est_util.h" 48 #include "chrome/browser/renderer_context_menu/render_view_context_menu_browsert est_util.h"
50 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h" 49 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h"
51 #include "chrome/browser/ui/browser.h" 50 #include "chrome/browser/ui/browser.h"
52 #include "chrome/browser/ui/browser_commands.h" 51 #include "chrome/browser/ui/browser_commands.h"
53 #include "chrome/browser/ui/browser_finder.h" 52 #include "chrome/browser/ui/browser_finder.h"
54 #include "chrome/browser/ui/browser_list.h" 53 #include "chrome/browser/ui/browser_list.h"
55 #include "chrome/browser/ui/browser_tabstrip.h" 54 #include "chrome/browser/ui/browser_tabstrip.h"
56 #include "chrome/browser/ui/browser_window.h" 55 #include "chrome/browser/ui/browser_window.h"
57 #include "chrome/browser/ui/chrome_pages.h" 56 #include "chrome/browser/ui/chrome_pages.h"
58 #include "chrome/browser/ui/host_desktop.h" 57 #include "chrome/browser/ui/host_desktop.h"
59 #include "chrome/browser/ui/tabs/tab_strip_model.h" 58 #include "chrome/browser/ui/tabs/tab_strip_model.h"
60 #include "chrome/common/chrome_paths.h" 59 #include "chrome/common/chrome_paths.h"
61 #include "chrome/common/pref_names.h" 60 #include "chrome/common/pref_names.h"
62 #include "chrome/common/safe_browsing/csd.pb.h" 61 #include "chrome/common/safe_browsing/csd.pb.h"
63 #include "chrome/common/url_constants.h" 62 #include "chrome/common/url_constants.h"
64 #include "chrome/grit/generated_resources.h" 63 #include "chrome/grit/generated_resources.h"
65 #include "chrome/test/base/in_process_browser_test.h" 64 #include "chrome/test/base/in_process_browser_test.h"
66 #include "chrome/test/base/test_switches.h" 65 #include "chrome/test/base/test_switches.h"
67 #include "chrome/test/base/ui_test_utils.h" 66 #include "chrome/test/base/ui_test_utils.h"
67 #include "components/history/core/browser/download_row.h"
68 #include "components/infobars/core/confirm_infobar_delegate.h" 68 #include "components/infobars/core/confirm_infobar_delegate.h"
69 #include "components/infobars/core/infobar.h" 69 #include "components/infobars/core/infobar.h"
70 #include "content/public/browser/download_interrupt_reasons.h" 70 #include "content/public/browser/download_interrupt_reasons.h"
71 #include "content/public/browser/download_item.h" 71 #include "content/public/browser/download_item.h"
72 #include "content/public/browser/download_manager.h" 72 #include "content/public/browser/download_manager.h"
73 #include "content/public/browser/download_save_info.h" 73 #include "content/public/browser/download_save_info.h"
74 #include "content/public/browser/download_url_parameters.h" 74 #include "content/public/browser/download_url_parameters.h"
75 #include "content/public/browser/notification_source.h" 75 #include "content/public/browser/notification_source.h"
76 #include "content/public/browser/render_frame_host.h" 76 #include "content/public/browser/render_frame_host.h"
77 #include "content/public/browser/render_view_host.h" 77 #include "content/public/browser/render_view_host.h"
(...skipping 3435 matching lines...) Expand 10 before | Expand all | Expand 10 after
3513 *(downloads[0]))); 3513 *(downloads[0])));
3514 3514
3515 // Begin feedback and check that the file is "stolen". 3515 // Begin feedback and check that the file is "stolen".
3516 download_protection_service->feedback_service()->BeginFeedbackForDownload( 3516 download_protection_service->feedback_service()->BeginFeedbackForDownload(
3517 downloads[0]); 3517 downloads[0]);
3518 std::vector<DownloadItem*> updated_downloads; 3518 std::vector<DownloadItem*> updated_downloads;
3519 GetDownloads(browser(), &updated_downloads); 3519 GetDownloads(browser(), &updated_downloads);
3520 ASSERT_TRUE(updated_downloads.empty()); 3520 ASSERT_TRUE(updated_downloads.empty());
3521 } 3521 }
3522 #endif 3522 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698