OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <queue> | 5 #include <queue> |
6 #include <set> | 6 #include <set> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2792 base::GenerateGUID(), download->GetId() + 2, download->GetFullPath(), | 2792 base::GenerateGUID(), download->GetId() + 2, download->GetFullPath(), |
2793 download->GetTargetFilePath(), url_chain, download->GetReferrerUrl(), | 2793 download->GetTargetFilePath(), url_chain, download->GetReferrerUrl(), |
2794 download->GetSiteUrl(), download->GetTabUrl(), | 2794 download->GetSiteUrl(), download->GetTabUrl(), |
2795 download->GetTabReferrerUrl(), download->GetMimeType(), | 2795 download->GetTabReferrerUrl(), download->GetMimeType(), |
2796 download->GetOriginalMimeType(), download->GetStartTime(), | 2796 download->GetOriginalMimeType(), download->GetStartTime(), |
2797 download->GetEndTime(), download->GetETag(), | 2797 download->GetEndTime(), download->GetETag(), |
2798 download->GetLastModifiedTime(), download->GetReceivedBytes(), | 2798 download->GetLastModifiedTime(), download->GetReceivedBytes(), |
2799 download->GetTotalBytes(), download->GetHash(), download->GetState(), | 2799 download->GetTotalBytes(), download->GetHash(), download->GetState(), |
2800 download->GetDangerType(), download->GetLastReason(), | 2800 download->GetDangerType(), download->GetLastReason(), |
2801 download->GetOpened(), download->GetLastAccessTime(), | 2801 download->GetOpened(), download->GetLastAccessTime(), |
2802 download->GetReceivedSlices())); | 2802 download->IsTransient(), download->GetReceivedSlices())); |
2803 } | 2803 } |
2804 | 2804 |
2805 std::unique_ptr<content::DownloadTestObserver> completion_observer( | 2805 std::unique_ptr<content::DownloadTestObserver> completion_observer( |
2806 new content::DownloadTestObserverTerminal( | 2806 new content::DownloadTestObserverTerminal( |
2807 download_manager, 2, | 2807 download_manager, 2, |
2808 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL)); | 2808 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL)); |
2809 | 2809 |
2810 for (auto* download : downloads) { | 2810 for (auto* download : downloads) { |
2811 ASSERT_TRUE(download->CanResume()); | 2811 ASSERT_TRUE(download->CanResume()); |
2812 ASSERT_TRUE(temporary_download_dir.GetPath().IsParent( | 2812 ASSERT_TRUE(temporary_download_dir.GetPath().IsParent( |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4008 ClosingChromeSignInShouldNotCrash) { | 4008 ClosingChromeSignInShouldNotCrash) { |
4009 GURL signin_url{"chrome://chrome-signin"}; | 4009 GURL signin_url{"chrome://chrome-signin"}; |
4010 | 4010 |
4011 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); | 4011 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); |
4012 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); | 4012 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); |
4013 WaitForWebViewInDom(); | 4013 WaitForWebViewInDom(); |
4014 | 4014 |
4015 chrome::CloseTab(browser()); | 4015 chrome::CloseTab(browser()); |
4016 } | 4016 } |
4017 #endif | 4017 #endif |
OLD | NEW |