| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); | 405 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); |
| 406 MOCK_METHOD1(GetRequestContextForRenderProcess, | 406 MOCK_METHOD1(GetRequestContextForRenderProcess, |
| 407 net::URLRequestContextGetter*(int renderer_child_id)); | 407 net::URLRequestContextGetter*(int renderer_child_id)); |
| 408 MOCK_METHOD0(GetMediaRequestContext, | 408 MOCK_METHOD0(GetMediaRequestContext, |
| 409 net::URLRequestContextGetter*()); | 409 net::URLRequestContextGetter*()); |
| 410 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, | 410 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, |
| 411 net::URLRequestContextGetter*(int renderer_child_id)); | 411 net::URLRequestContextGetter*(int renderer_child_id)); |
| 412 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, | 412 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, |
| 413 net::URLRequestContextGetter*( | 413 net::URLRequestContextGetter*( |
| 414 const base::FilePath& partition_path, bool in_memory)); | 414 const base::FilePath& partition_path, bool in_memory)); |
| 415 MOCK_METHOD6(RequestMidiSysExPermission, | |
| 416 void(int render_process_id, | |
| 417 int render_view_id, | |
| 418 int bridge_id, | |
| 419 const GURL& requesting_frame, | |
| 420 bool user_gesture, | |
| 421 const MidiSysExPermissionCallback& callback)); | |
| 422 MOCK_METHOD4(CancelMidiSysExPermissionRequest, | |
| 423 void(int render_process_id, | |
| 424 int render_view_id, | |
| 425 int bridge_id, | |
| 426 const GURL& requesting_frame)); | |
| 427 MOCK_METHOD4(RequestProtectedMediaIdentifierPermission, | 415 MOCK_METHOD4(RequestProtectedMediaIdentifierPermission, |
| 428 void(int render_process_id, | 416 void(int render_process_id, |
| 429 int render_view_id, | 417 int render_view_id, |
| 430 const GURL& origin, | 418 const GURL& origin, |
| 431 const ProtectedMediaIdentifierPermissionCallback& | 419 const ProtectedMediaIdentifierPermissionCallback& |
| 432 callback)); | 420 callback)); |
| 433 MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests, | 421 MOCK_METHOD3(CancelProtectedMediaIdentifierPermissionRequests, |
| 434 void(int render_process_id, | 422 void(int render_process_id, |
| 435 int render_view_id, | 423 int render_view_id, |
| 436 const GURL& origin)); | 424 const GURL& origin)); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 .WillOnce(Return()); | 689 .WillOnce(Return()); |
| 702 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 690 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
| 703 .Times(0); | 691 .Times(0); |
| 704 | 692 |
| 705 download_manager_->RemoveAllDownloads(); | 693 download_manager_->RemoveAllDownloads(); |
| 706 // Because we're mocking the download item, the Remove call doesn't | 694 // Because we're mocking the download item, the Remove call doesn't |
| 707 // result in them being removed from the DownloadManager list. | 695 // result in them being removed from the DownloadManager list. |
| 708 } | 696 } |
| 709 | 697 |
| 710 } // namespace content | 698 } // namespace content |
| OLD | NEW |