| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 int group_id, | 425 int group_id, |
| 426 const GURL& requesting_frame, | 426 const GURL& requesting_frame, |
| 427 const ProtectedMediaIdentifierPermissionCallback& | 427 const ProtectedMediaIdentifierPermissionCallback& |
| 428 callback)); | 428 callback)); |
| 429 MOCK_METHOD1(CancelProtectedMediaIdentifierPermissionRequests, | 429 MOCK_METHOD1(CancelProtectedMediaIdentifierPermissionRequests, |
| 430 void(int group_id)); | 430 void(int group_id)); |
| 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(GetGuestManagerDelegate, | 435 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); |
| 436 BrowserPluginGuestManagerDelegate* ()); | |
| 437 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); | 436 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); |
| 438 }; | 437 }; |
| 439 | 438 |
| 440 class MockDownloadManagerObserver : public DownloadManager::Observer { | 439 class MockDownloadManagerObserver : public DownloadManager::Observer { |
| 441 public: | 440 public: |
| 442 MockDownloadManagerObserver() {} | 441 MockDownloadManagerObserver() {} |
| 443 ~MockDownloadManagerObserver() {} | 442 ~MockDownloadManagerObserver() {} |
| 444 MOCK_METHOD2(OnDownloadCreated, void( | 443 MOCK_METHOD2(OnDownloadCreated, void( |
| 445 DownloadManager*, DownloadItem*)); | 444 DownloadManager*, DownloadItem*)); |
| 446 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); | 445 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 .WillOnce(Return()); | 696 .WillOnce(Return()); |
| 698 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 697 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
| 699 .Times(0); | 698 .Times(0); |
| 700 | 699 |
| 701 download_manager_->RemoveAllDownloads(); | 700 download_manager_->RemoveAllDownloads(); |
| 702 // Because we're mocking the download item, the Remove call doesn't | 701 // Because we're mocking the download item, the Remove call doesn't |
| 703 // result in them being removed from the DownloadManager list. | 702 // result in them being removed from the DownloadManager list. |
| 704 } | 703 } |
| 705 | 704 |
| 706 } // namespace content | 705 } // namespace content |
| OLD | NEW |