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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); | 397 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); |
398 MOCK_METHOD1(GetRequestContextForRenderProcess, | 398 MOCK_METHOD1(GetRequestContextForRenderProcess, |
399 net::URLRequestContextGetter*(int renderer_child_id)); | 399 net::URLRequestContextGetter*(int renderer_child_id)); |
400 MOCK_METHOD0(GetMediaRequestContext, | 400 MOCK_METHOD0(GetMediaRequestContext, |
401 net::URLRequestContextGetter*()); | 401 net::URLRequestContextGetter*()); |
402 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, | 402 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, |
403 net::URLRequestContextGetter*(int renderer_child_id)); | 403 net::URLRequestContextGetter*(int renderer_child_id)); |
404 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, | 404 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, |
405 net::URLRequestContextGetter*( | 405 net::URLRequestContextGetter*( |
406 const base::FilePath& partition_path, bool in_memory)); | 406 const base::FilePath& partition_path, bool in_memory)); |
407 MOCK_METHOD4(RequestMIDISysExPermission, | 407 MOCK_METHOD5(RequestMIDISysExPermission, |
408 void(int render_process_id, | 408 void(int render_process_id, |
409 int render_view_id, | 409 int render_view_id, |
| 410 int bridge_id, |
410 const GURL& requesting_frame, | 411 const GURL& requesting_frame, |
411 const MIDISysExPermissionCallback& callback)); | 412 const MIDISysExPermissionCallback& callback)); |
| 413 MOCK_METHOD4(CancelMIDISysExPermissionRequest, |
| 414 void(int render_process_id, |
| 415 int render_view_id, |
| 416 int bridge_id, |
| 417 const GURL& requesting_frame)); |
412 MOCK_METHOD0(GetResourceContext, ResourceContext*()); | 418 MOCK_METHOD0(GetResourceContext, ResourceContext*()); |
413 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); | 419 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); |
414 MOCK_METHOD0(GetGeolocationPermissionContext, | 420 MOCK_METHOD0(GetGeolocationPermissionContext, |
415 GeolocationPermissionContext* ()); | 421 GeolocationPermissionContext* ()); |
416 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); | 422 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); |
417 }; | 423 }; |
418 | 424 |
419 class MockDownloadManagerObserver : public DownloadManager::Observer { | 425 class MockDownloadManagerObserver : public DownloadManager::Observer { |
420 public: | 426 public: |
421 MockDownloadManagerObserver() {} | 427 MockDownloadManagerObserver() {} |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 .WillOnce(Return()); | 682 .WillOnce(Return()); |
677 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 683 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
678 .Times(0); | 684 .Times(0); |
679 | 685 |
680 download_manager_->RemoveAllDownloads(); | 686 download_manager_->RemoveAllDownloads(); |
681 // Because we're mocking the download item, the Remove call doesn't | 687 // Because we're mocking the download item, the Remove call doesn't |
682 // result in them being removed from the DownloadManager list. | 688 // result in them being removed from the DownloadManager list. |
683 } | 689 } |
684 | 690 |
685 } // namespace content | 691 } // namespace content |
OLD | NEW |