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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "chrome/browser/download/download_browsertest.h" 5 #include "chrome/browser/download/download_browsertest.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <sstream> 8 #include <sstream>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/feature_list.h" 14 #include "base/feature_list.h"
15 #include "base/files/file.h" 15 #include "base/files/file.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/files/scoped_temp_dir.h" 18 #include "base/files/scoped_temp_dir.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/prefs/pref_service.h"
23 #include "base/stl_util.h" 22 #include "base/stl_util.h"
24 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
25 #include "base/strings/string_split.h" 24 #include "base/strings/string_split.h"
26 #include "base/strings/string_util.h" 25 #include "base/strings/string_util.h"
27 #include "base/strings/stringprintf.h" 26 #include "base/strings/stringprintf.h"
28 #include "base/strings/utf_string_conversions.h" 27 #include "base/strings/utf_string_conversions.h"
29 #include "base/sys_info.h" 28 #include "base/sys_info.h"
30 #include "base/test/test_file_util.h" 29 #include "base/test/test_file_util.h"
31 #include "build/build_config.h" 30 #include "build/build_config.h"
32 #include "chrome/app/chrome_command_ids.h" 31 #include "chrome/app/chrome_command_ids.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "chrome/grit/generated_resources.h" 67 #include "chrome/grit/generated_resources.h"
69 #include "chrome/test/base/in_process_browser_test.h" 68 #include "chrome/test/base/in_process_browser_test.h"
70 #include "chrome/test/base/test_switches.h" 69 #include "chrome/test/base/test_switches.h"
71 #include "chrome/test/base/ui_test_utils.h" 70 #include "chrome/test/base/ui_test_utils.h"
72 #include "components/history/content/browser/download_constants_utils.h" 71 #include "components/history/content/browser/download_constants_utils.h"
73 #include "components/history/core/browser/download_constants.h" 72 #include "components/history/core/browser/download_constants.h"
74 #include "components/history/core/browser/download_row.h" 73 #include "components/history/core/browser/download_row.h"
75 #include "components/history/core/browser/history_service.h" 74 #include "components/history/core/browser/history_service.h"
76 #include "components/infobars/core/confirm_infobar_delegate.h" 75 #include "components/infobars/core/confirm_infobar_delegate.h"
77 #include "components/infobars/core/infobar.h" 76 #include "components/infobars/core/infobar.h"
77 #include "components/prefs/pref_service.h"
78 #include "content/public/browser/download_interrupt_reasons.h" 78 #include "content/public/browser/download_interrupt_reasons.h"
79 #include "content/public/browser/download_item.h" 79 #include "content/public/browser/download_item.h"
80 #include "content/public/browser/download_manager.h" 80 #include "content/public/browser/download_manager.h"
81 #include "content/public/browser/download_save_info.h" 81 #include "content/public/browser/download_save_info.h"
82 #include "content/public/browser/download_url_parameters.h" 82 #include "content/public/browser/download_url_parameters.h"
83 #include "content/public/browser/notification_source.h" 83 #include "content/public/browser/notification_source.h"
84 #include "content/public/browser/render_frame_host.h" 84 #include "content/public/browser/render_frame_host.h"
85 #include "content/public/browser/render_view_host.h" 85 #include "content/public/browser/render_view_host.h"
86 #include "content/public/browser/render_widget_host.h" 86 #include "content/public/browser/render_widget_host.h"
87 #include "content/public/browser/resource_context.h" 87 #include "content/public/browser/resource_context.h"
(...skipping 3548 matching lines...) Expand 10 before | Expand all | Expand 10 after
3636 3636
3637 scoped_ptr<content::DownloadTestObserver> observer(DangerousDownloadWaiter( 3637 scoped_ptr<content::DownloadTestObserver> observer(DangerousDownloadWaiter(
3638 browser(), 1, content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); 3638 browser(), 1, content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY));
3639 ui_test_utils::NavigateToURL(browser(), extension_url); 3639 ui_test_utils::NavigateToURL(browser(), extension_url);
3640 3640
3641 observer->WaitForFinished(); 3641 observer->WaitForFinished();
3642 3642
3643 // Download shelf should close. 3643 // Download shelf should close.
3644 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); 3644 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible());
3645 } 3645 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698