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/path_service.h" | 20 #include "base/path_service.h" |
20 #include "base/run_loop.h" | 21 #include "base/run_loop.h" |
21 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
22 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
23 #include "base/test/scoped_command_line.h" | 24 #include "base/test/scoped_command_line.h" |
24 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/download/download_browsertest.h" | 26 #include "chrome/browser/download/download_browsertest.h" |
26 #include "chrome/browser/loader/chrome_navigation_data.h" | 27 #include "chrome/browser/loader/chrome_navigation_data.h" |
27 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" | 28 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" |
28 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 DownloadTestObserverNotInProgress download_observer( | 630 DownloadTestObserverNotInProgress download_observer( |
630 content::BrowserContext::GetDownloadManager(browser()->profile()), 1); | 631 content::BrowserContext::GetDownloadManager(browser()->profile()), 1); |
631 download_observer.StartObserving(); | 632 download_observer.StartObserving(); |
632 ui_test_utils::NavigateToURL(browser(), embedded_test_server()->GetURL( | 633 ui_test_utils::NavigateToURL(browser(), embedded_test_server()->GetURL( |
633 "/download-anchor-attrib.html")); | 634 "/download-anchor-attrib.html")); |
634 download_observer.WaitForFinished(); | 635 download_observer.WaitForFinished(); |
635 EXPECT_EQ(1, | 636 EXPECT_EQ(1, |
636 GetTimesStandardThrottlesAddedForURL( | 637 GetTimesStandardThrottlesAddedForURL( |
637 embedded_test_server()->GetURL("/anchor_download_test.png"))); | 638 embedded_test_server()->GetURL("/anchor_download_test.png"))); |
638 } | 639 } |
OLD | NEW |