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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_unittest.cc

Issue 14947007: [Downloads] Allow acquiring dangerous download file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
index 6e9c7d2b7d5cde666670243aa3b75e26a5bee8f2..91e900806e36a795562f8e148c37d39bf82f9a2b 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
@@ -1100,7 +1100,7 @@ IN_PROC_BROWSER_TEST_F(DownloadExtensionTest,
// Once the download item is deleted, we should return kInvalidOperationError.
int id = download_item->GetId();
- download_item->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD);
+ download_item->Remove();
download_item = NULL;
EXPECT_EQ(static_cast<DownloadItem*>(NULL),
GetCurrentManager()->GetDownload(id));
@@ -2370,7 +2370,7 @@ IN_PROC_BROWSER_TEST_F(
" \"current\":false}}]",
result_id)));
- item->DangerousDownloadValidated();
+ item->ValidateDangerousDownload();
ASSERT_TRUE(WaitFor(events::kOnDownloadChanged,
base::StringPrintf("[{\"id\": %d,"
" \"dangerAccepted\": {"

Powered by Google App Engine
This is Rietveld 408576698