| 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*()); | |
| 444 }; | 443 }; |
| 445 | 444 |
| 446 class MockDownloadManagerObserver : public DownloadManager::Observer { | 445 class MockDownloadManagerObserver : public DownloadManager::Observer { |
| 447 public: | 446 public: |
| 448 MockDownloadManagerObserver() {} | 447 MockDownloadManagerObserver() {} |
| 449 ~MockDownloadManagerObserver() {} | 448 ~MockDownloadManagerObserver() {} |
| 450 MOCK_METHOD2(OnDownloadCreated, void( | 449 MOCK_METHOD2(OnDownloadCreated, void( |
| 451 DownloadManager*, DownloadItem*)); | 450 DownloadManager*, DownloadItem*)); |
| 452 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); | 451 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); |
| 453 MOCK_METHOD2(SelectFileDialogDisplayed, void( | 452 MOCK_METHOD2(SelectFileDialogDisplayed, void( |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 .WillOnce(Return()); | 702 .WillOnce(Return()); |
| 704 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 703 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
| 705 .Times(0); | 704 .Times(0); |
| 706 | 705 |
| 707 download_manager_->RemoveAllDownloads(); | 706 download_manager_->RemoveAllDownloads(); |
| 708 // Because we're mocking the download item, the Remove call doesn't | 707 // Because we're mocking the download item, the Remove call doesn't |
| 709 // result in them being removed from the DownloadManager list. | 708 // result in them being removed from the DownloadManager list. |
| 710 } | 709 } |
| 711 | 710 |
| 712 } // namespace content | 711 } // namespace content |
| OLD | NEW |