| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 net::URLRequestContextGetter*(int renderer_child_id)); | 413 net::URLRequestContextGetter*(int renderer_child_id)); |
| 414 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, | 414 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, |
| 415 net::URLRequestContextGetter*( | 415 net::URLRequestContextGetter*( |
| 416 const base::FilePath& partition_path, bool in_memory)); | 416 const base::FilePath& partition_path, bool in_memory)); |
| 417 MOCK_METHOD0(GetResourceContext, ResourceContext*()); | 417 MOCK_METHOD0(GetResourceContext, ResourceContext*()); |
| 418 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); | 418 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); |
| 419 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); | 419 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); |
| 420 MOCK_METHOD0(GetSpecialStoragePolicy, storage::SpecialStoragePolicy*()); | 420 MOCK_METHOD0(GetSpecialStoragePolicy, storage::SpecialStoragePolicy*()); |
| 421 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); | 421 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); |
| 422 MOCK_METHOD0(GetSSLHostStateDelegate, SSLHostStateDelegate*()); | 422 MOCK_METHOD0(GetSSLHostStateDelegate, SSLHostStateDelegate*()); |
| 423 MOCK_METHOD0(GetPermissionManager, PermissionManager*()); |
| 423 | 424 |
| 424 scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( | 425 scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 425 const base::FilePath& path) override { | 426 const base::FilePath& path) override { |
| 426 return scoped_ptr<ZoomLevelDelegate>(CreateZoomLevelDelegateMock(path)); | 427 return scoped_ptr<ZoomLevelDelegate>(CreateZoomLevelDelegateMock(path)); |
| 427 } | 428 } |
| 428 }; | 429 }; |
| 429 | 430 |
| 430 class MockDownloadManagerObserver : public DownloadManager::Observer { | 431 class MockDownloadManagerObserver : public DownloadManager::Observer { |
| 431 public: | 432 public: |
| 432 MockDownloadManagerObserver() {} | 433 MockDownloadManagerObserver() {} |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 .WillOnce(Return()); | 688 .WillOnce(Return()); |
| 688 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 689 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
| 689 .Times(0); | 690 .Times(0); |
| 690 | 691 |
| 691 download_manager_->RemoveAllDownloads(); | 692 download_manager_->RemoveAllDownloads(); |
| 692 // Because we're mocking the download item, the Remove call doesn't | 693 // Because we're mocking the download item, the Remove call doesn't |
| 693 // result in them being removed from the DownloadManager list. | 694 // result in them being removed from the DownloadManager list. |
| 694 } | 695 } |
| 695 | 696 |
| 696 } // namespace content | 697 } // namespace content |
| OLD | NEW |