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

Side by Side Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 8 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698