OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |