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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 int render_view_id, | 429 int render_view_id, |
430 const GURL& origin, | 430 const GURL& origin, |
431 const ProtectedMediaIdentifierPermissionCallback& | 431 const ProtectedMediaIdentifierPermissionCallback& |
432 callback)); | 432 callback)); |
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, | |
440 GeolocationPermissionContext* ()); | |
441 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); | 439 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); |
442 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); | 440 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); |
443 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); | 441 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); |
444 }; | 442 }; |
445 | 443 |
446 class MockDownloadManagerObserver : public DownloadManager::Observer { | 444 class MockDownloadManagerObserver : public DownloadManager::Observer { |
447 public: | 445 public: |
448 MockDownloadManagerObserver() {} | 446 MockDownloadManagerObserver() {} |
449 ~MockDownloadManagerObserver() {} | 447 ~MockDownloadManagerObserver() {} |
450 MOCK_METHOD2(OnDownloadCreated, void( | 448 MOCK_METHOD2(OnDownloadCreated, void( |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 .WillOnce(Return()); | 701 .WillOnce(Return()); |
704 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 702 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
705 .Times(0); | 703 .Times(0); |
706 | 704 |
707 download_manager_->RemoveAllDownloads(); | 705 download_manager_->RemoveAllDownloads(); |
708 // Because we're mocking the download item, the Remove call doesn't | 706 // Because we're mocking the download item, the Remove call doesn't |
709 // result in them being removed from the DownloadManager list. | 707 // result in them being removed from the DownloadManager list. |
710 } | 708 } |
711 | 709 |
712 } // namespace content | 710 } // namespace content |
OLD | NEW |