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

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

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase origin/master Created 3 years, 9 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 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2781 downloads.push_back(download_manager->CreateDownloadItem( 2781 downloads.push_back(download_manager->CreateDownloadItem(
2782 base::GenerateGUID(), download->GetId() + 2, download->GetFullPath(), 2782 base::GenerateGUID(), download->GetId() + 2, download->GetFullPath(),
2783 download->GetTargetFilePath(), url_chain, download->GetReferrerUrl(), 2783 download->GetTargetFilePath(), url_chain, download->GetReferrerUrl(),
2784 download->GetSiteUrl(), download->GetTabUrl(), 2784 download->GetSiteUrl(), download->GetTabUrl(),
2785 download->GetTabReferrerUrl(), download->GetMimeType(), 2785 download->GetTabReferrerUrl(), download->GetMimeType(),
2786 download->GetOriginalMimeType(), download->GetStartTime(), 2786 download->GetOriginalMimeType(), download->GetStartTime(),
2787 download->GetEndTime(), download->GetETag(), 2787 download->GetEndTime(), download->GetETag(),
2788 download->GetLastModifiedTime(), download->GetReceivedBytes(), 2788 download->GetLastModifiedTime(), download->GetReceivedBytes(),
2789 download->GetTotalBytes(), download->GetHash(), download->GetState(), 2789 download->GetTotalBytes(), download->GetHash(), download->GetState(),
2790 download->GetDangerType(), download->GetLastReason(), 2790 download->GetDangerType(), download->GetLastReason(),
2791 download->GetOpened(), download->GetReceivedSlices())); 2791 download->GetOpened(), download->GetLastAccessTime(),
2792 download->GetReceivedSlices()));
2792 } 2793 }
2793 2794
2794 std::unique_ptr<content::DownloadTestObserver> completion_observer( 2795 std::unique_ptr<content::DownloadTestObserver> completion_observer(
2795 new content::DownloadTestObserverTerminal( 2796 new content::DownloadTestObserverTerminal(
2796 download_manager, 2, 2797 download_manager, 2,
2797 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL)); 2798 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL));
2798 2799
2799 for (auto* download : downloads) { 2800 for (auto* download : downloads) {
2800 ASSERT_TRUE(download->CanResume()); 2801 ASSERT_TRUE(download->CanResume());
2801 ASSERT_TRUE(temporary_download_dir.GetPath().IsParent( 2802 ASSERT_TRUE(temporary_download_dir.GetPath().IsParent(
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3904 ClosingChromeSignInShouldNotCrash) { 3905 ClosingChromeSignInShouldNotCrash) {
3905 GURL signin_url{"chrome://chrome-signin"}; 3906 GURL signin_url{"chrome://chrome-signin"};
3906 3907
3907 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); 3908 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED);
3908 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); 3909 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED);
3909 WaitForWebViewInDom(); 3910 WaitForWebViewInDom();
3910 3911
3911 chrome::CloseTab(browser()); 3912 chrome::CloseTab(browser());
3912 } 3913 }
3913 #endif 3914 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698