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/download_manager_impl_unittest.cc

Issue 317823007: Hook PushMessagingMessageFilter up to GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send failure IPC when service is NULL Created 6 years, 6 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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/push_messaging_message_filter.h » ('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 (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 #include <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests, 433 MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests,
434 void(int render_process_id, 434 void(int render_process_id,
435 int render_view_id, 435 int render_view_id,
436 const GURL& origin)); 436 const GURL& origin));
437 MOCK_METHOD0(GetResourceContext, ResourceContext*()); 437 MOCK_METHOD0(GetResourceContext, ResourceContext*());
438 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); 438 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*());
439 MOCK_METHOD0(GetGeolocationPermissionContext, 439 MOCK_METHOD0(GetGeolocationPermissionContext,
440 GeolocationPermissionContext* ()); 440 GeolocationPermissionContext* ());
441 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); 441 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ());
442 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); 442 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*());
443 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*());
443 }; 444 };
444 445
445 class MockDownloadManagerObserver : public DownloadManager::Observer { 446 class MockDownloadManagerObserver : public DownloadManager::Observer {
446 public: 447 public:
447 MockDownloadManagerObserver() {} 448 MockDownloadManagerObserver() {}
448 ~MockDownloadManagerObserver() {} 449 ~MockDownloadManagerObserver() {}
449 MOCK_METHOD2(OnDownloadCreated, void( 450 MOCK_METHOD2(OnDownloadCreated, void(
450 DownloadManager*, DownloadItem*)); 451 DownloadManager*, DownloadItem*));
451 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); 452 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*));
452 MOCK_METHOD2(SelectFileDialogDisplayed, void( 453 MOCK_METHOD2(SelectFileDialogDisplayed, void(
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 .WillOnce(Return()); 703 .WillOnce(Return());
703 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 704 EXPECT_CALL(GetMockDownloadItem(3), Remove())
704 .Times(0); 705 .Times(0);
705 706
706 download_manager_->RemoveAllDownloads(); 707 download_manager_->RemoveAllDownloads();
707 // Because we're mocking the download item, the Remove call doesn't 708 // Because we're mocking the download item, the Remove call doesn't
708 // result in them being removed from the DownloadManager list. 709 // result in them being removed from the DownloadManager list.
709 } 710 }
710 711
711 } // namespace content 712 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/push_messaging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698