OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/loader/chrome_resource_dispatcher_host_delegate.h" | 5 #include "chrome/browser/loader/chrome_resource_dispatcher_host_delegate.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/files/scoped_temp_dir.h" | 17 #include "base/files/scoped_temp_dir.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/run_loop.h" | 21 #include "base/run_loop.h" |
22 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/test/scoped_command_line.h" | 24 #include "base/test/scoped_command_line.h" |
| 25 #include "base/threading/sequenced_worker_pool.h" |
25 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/download/download_browsertest.h" | 27 #include "chrome/browser/download/download_browsertest.h" |
27 #include "chrome/browser/loader/chrome_navigation_data.h" | 28 #include "chrome/browser/loader/chrome_navigation_data.h" |
28 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" | 29 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" |
29 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
31 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 32 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
32 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
33 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
34 #include "chrome/test/base/in_process_browser_test.h" | 35 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 DownloadTestObserverNotInProgress download_observer( | 632 DownloadTestObserverNotInProgress download_observer( |
632 content::BrowserContext::GetDownloadManager(browser()->profile()), 1); | 633 content::BrowserContext::GetDownloadManager(browser()->profile()), 1); |
633 download_observer.StartObserving(); | 634 download_observer.StartObserving(); |
634 ui_test_utils::NavigateToURL(browser(), embedded_test_server()->GetURL( | 635 ui_test_utils::NavigateToURL(browser(), embedded_test_server()->GetURL( |
635 "/download-anchor-attrib.html")); | 636 "/download-anchor-attrib.html")); |
636 download_observer.WaitForFinished(); | 637 download_observer.WaitForFinished(); |
637 EXPECT_EQ(1, | 638 EXPECT_EQ(1, |
638 GetTimesStandardThrottlesAddedForURL( | 639 GetTimesStandardThrottlesAddedForURL( |
639 embedded_test_server()->GetURL("/anchor_download_test.png"))); | 640 embedded_test_server()->GetURL("/anchor_download_test.png"))); |
640 } | 641 } |
OLD | NEW |