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

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

Issue 2703883003: Read and restore persisted slice info (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/downloads_counter_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())); 2791 download->GetOpened(), download->GetReceivedSlices()));
2792 } 2792 }
2793 2793
2794 std::unique_ptr<content::DownloadTestObserver> completion_observer( 2794 std::unique_ptr<content::DownloadTestObserver> completion_observer(
2795 new content::DownloadTestObserverTerminal( 2795 new content::DownloadTestObserverTerminal(
2796 download_manager, 2, 2796 download_manager, 2,
2797 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL)); 2797 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_FAIL));
2798 2798
2799 for (auto* download : downloads) { 2799 for (auto* download : downloads) {
2800 ASSERT_TRUE(download->CanResume()); 2800 ASSERT_TRUE(download->CanResume());
2801 ASSERT_TRUE(temporary_download_dir.GetPath().IsParent( 2801 ASSERT_TRUE(temporary_download_dir.GetPath().IsParent(
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3904 ClosingChromeSignInShouldNotCrash) { 3904 ClosingChromeSignInShouldNotCrash) {
3905 GURL signin_url{"chrome://chrome-signin"}; 3905 GURL signin_url{"chrome://chrome-signin"};
3906 3906
3907 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); 3907 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED);
3908 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); 3908 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED);
3909 WaitForWebViewInDom(); 3909 WaitForWebViewInDom();
3910 3910
3911 chrome::CloseTab(browser()); 3911 chrome::CloseTab(browser());
3912 } 3912 }
3913 #endif 3913 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data/downloads_counter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698