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

Side by Side Diff: content/browser/download/mock_download_manager.h

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed event type name for Download to refer to URL Request Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/download/download_request_handle.h" 9 #include "content/browser/download/download_request_handle.h"
10 #include "content/browser/download/download_types.h" 10 #include "content/browser/download/download_types.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download)); 81 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download));
82 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id)); 82 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id));
83 MOCK_METHOD0(GenerateFileHash, bool()); 83 MOCK_METHOD0(GenerateFileHash, bool());
84 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*()); 84 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*());
85 MOCK_METHOD1(SetDownloadManagerDelegate, void( 85 MOCK_METHOD1(SetDownloadManagerDelegate, void(
86 content::DownloadManagerDelegate* delegate)); 86 content::DownloadManagerDelegate* delegate));
87 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, 87 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download,
88 const FilePath& chosen_file)); 88 const FilePath& chosen_file));
89 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); 89 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id));
90 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); 90 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager));
91 MOCK_METHOD0(GetNetLog, net::NetLog*());
91 }; 92 };
92 93
93 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 94 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698