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

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: Make push_messaging_service non-const 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
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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests, 427 MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests,
428 void(int render_process_id, 428 void(int render_process_id,
429 int render_view_id, 429 int render_view_id,
430 const GURL& origin)); 430 const GURL& origin));
431 MOCK_METHOD0(GetResourceContext, ResourceContext*()); 431 MOCK_METHOD0(GetResourceContext, ResourceContext*());
432 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); 432 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*());
433 MOCK_METHOD0(GetGeolocationPermissionContext, 433 MOCK_METHOD0(GetGeolocationPermissionContext,
434 GeolocationPermissionContext* ()); 434 GeolocationPermissionContext* ());
435 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); 435 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ());
436 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); 436 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*());
437 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*());
437 }; 438 };
438 439
439 class MockDownloadManagerObserver : public DownloadManager::Observer { 440 class MockDownloadManagerObserver : public DownloadManager::Observer {
440 public: 441 public:
441 MockDownloadManagerObserver() {} 442 MockDownloadManagerObserver() {}
442 ~MockDownloadManagerObserver() {} 443 ~MockDownloadManagerObserver() {}
443 MOCK_METHOD2(OnDownloadCreated, void( 444 MOCK_METHOD2(OnDownloadCreated, void(
444 DownloadManager*, DownloadItem*)); 445 DownloadManager*, DownloadItem*));
445 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); 446 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*));
446 MOCK_METHOD2(SelectFileDialogDisplayed, void( 447 MOCK_METHOD2(SelectFileDialogDisplayed, void(
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 .WillOnce(Return()); 697 .WillOnce(Return());
697 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 698 EXPECT_CALL(GetMockDownloadItem(3), Remove())
698 .Times(0); 699 .Times(0);
699 700
700 download_manager_->RemoveAllDownloads(); 701 download_manager_->RemoveAllDownloads();
701 // Because we're mocking the download item, the Remove call doesn't 702 // Because we're mocking the download item, the Remove call doesn't
702 // result in them being removed from the DownloadManager list. 703 // result in them being removed from the DownloadManager list.
703 } 704 }
704 705
705 } // namespace content 706 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698