diff options
author | Torne (Richard Coles) <torne@google.com> | 2014-06-20 14:52:04 +0100 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2014-06-20 14:52:04 +0100 |
commit | f8ee788a64d60abd8f2d742a5fdedde054ecd910 (patch) | |
tree | 7dc14380200b953c64e0ccd16435cdbd1dbf1205 /content/browser/download/download_manager_impl_unittest.cc | |
parent | fcbbbe23a38088a52492922075e71a419c4b01ec (diff) | |
download | chromium_org-f8ee788a64d60abd8f2d742a5fdedde054ecd910.tar.gz |
Merge from Chromium at DEPS revision 278205
This commit was generated by merge_to_master.py.
Change-Id: I23f1e7ea8c154ba72e7fb594436216f861f868ab
Diffstat (limited to 'content/browser/download/download_manager_impl_unittest.cc')
-rw-r--r-- | content/browser/download/download_manager_impl_unittest.cc | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/content/browser/download/download_manager_impl_unittest.cc b/content/browser/download/download_manager_impl_unittest.cc index 091a7f8e6b..66430b4443 100644 --- a/content/browser/download/download_manager_impl_unittest.cc +++ b/content/browser/download/download_manager_impl_unittest.cc @@ -76,6 +76,8 @@ class MockDownloadItemImpl : public DownloadItemImpl { base::FilePath(), std::vector<GURL>(), GURL(), + "application/octet-stream", + "application/octet-stream", base::Time(), base::Time(), std::string(), @@ -234,6 +236,8 @@ class MockDownloadItemFactory const base::FilePath& target_path, const std::vector<GURL>& url_chain, const GURL& referrer_url, + const std::string& mime_type, + const std::string& original_mime_type, const base::Time& start_time, const base::Time& end_time, const std::string& etag, @@ -299,6 +303,8 @@ DownloadItemImpl* MockDownloadItemFactory::CreatePersistedItem( const base::FilePath& target_path, const std::vector<GURL>& url_chain, const GURL& referrer_url, + const std::string& mime_type, + const std::string& original_mime_type, const base::Time& start_time, const base::Time& end_time, const std::string& etag, @@ -406,34 +412,11 @@ class MockBrowserContext : public BrowserContext { MOCK_METHOD2(GetMediaRequestContextForStoragePartition, net::URLRequestContextGetter*( const base::FilePath& partition_path, bool in_memory)); - MOCK_METHOD6(RequestMidiSysExPermission, - void(int render_process_id, - int render_view_id, - int bridge_id, - const GURL& requesting_frame, - bool user_gesture, - const MidiSysExPermissionCallback& callback)); - MOCK_METHOD4(CancelMidiSysExPermissionRequest, - void(int render_process_id, - int render_view_id, - int bridge_id, - const GURL& requesting_frame)); - MOCK_METHOD4(RequestProtectedMediaIdentifierPermission, - void(int render_process_id, - int render_view_id, - const GURL& origin, - const ProtectedMediaIdentifierPermissionCallback& - callback)); - MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests, - void(int render_process_id, - int render_view_id, - const GURL& origin)); MOCK_METHOD0(GetResourceContext, ResourceContext*()); MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); - MOCK_METHOD0(GetGeolocationPermissionContext, - GeolocationPermissionContext* ()); MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); + MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); }; class MockDownloadManagerObserver : public DownloadManager::Observer { |