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

Unified Diff: chrome/browser/download/download_manager_unittest.cc

Issue 7847027: DownloadId (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 3 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/download/download_manager_unittest.cc
diff --git a/chrome/browser/download/download_manager_unittest.cc b/chrome/browser/download/download_manager_unittest.cc
index 3380046c629e5117e1eec5c7491660db97522cb6..5c578a8ca2e43f4a88a0ef67f390f05d5ff7cfc9 100644
--- a/chrome/browser/download/download_manager_unittest.cc
+++ b/chrome/browser/download/download_manager_unittest.cc
@@ -10,8 +10,8 @@
#include "base/i18n/rtl.h"
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
-#include "base/string_util.h"
#include "base/string16.h"
+#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
@@ -66,7 +66,8 @@ class DownloadManagerTest : public testing::Test {
}
void AddDownloadToFileManager(int id, DownloadFile* download_file) {
- file_manager()->downloads_[id] = download_file;
+ file_manager()->downloads_[DownloadId(download_manager_.get(), id)] =
+ download_file;
}
void OnResponseCompleted(int32 download_id, int64 size,
@@ -100,7 +101,7 @@ class DownloadManagerTest : public testing::Test {
BrowserThread::FILE, FROM_HERE,
NewRunnableMethod(file_manager_.get(),
&DownloadFileManager::UpdateDownload,
- id,
+ DownloadId(download_manager_.get(), id),
&download_buffer_));
message_loop_.RunAllPending();
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/download_throttling_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698