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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); | 399 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); |
400 MOCK_METHOD1(GetRequestContextForRenderProcess, | 400 MOCK_METHOD1(GetRequestContextForRenderProcess, |
401 net::URLRequestContextGetter*(int renderer_child_id)); | 401 net::URLRequestContextGetter*(int renderer_child_id)); |
402 MOCK_METHOD0(GetMediaRequestContext, | 402 MOCK_METHOD0(GetMediaRequestContext, |
403 net::URLRequestContextGetter*()); | 403 net::URLRequestContextGetter*()); |
404 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, | 404 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, |
405 net::URLRequestContextGetter*(int renderer_child_id)); | 405 net::URLRequestContextGetter*(int renderer_child_id)); |
406 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, | 406 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, |
407 net::URLRequestContextGetter*( | 407 net::URLRequestContextGetter*( |
408 const base::FilePath& partition_path, bool in_memory)); | 408 const base::FilePath& partition_path, bool in_memory)); |
409 MOCK_METHOD5(RequestMidiSysExPermission, | 409 MOCK_METHOD6(RequestMidiSysExPermission, |
410 void(int render_process_id, | 410 void(int render_process_id, |
411 int render_view_id, | 411 int render_view_id, |
412 int bridge_id, | 412 int bridge_id, |
413 const GURL& requesting_frame, | 413 const GURL& requesting_frame, |
| 414 bool user_gesture, |
414 const MidiSysExPermissionCallback& callback)); | 415 const MidiSysExPermissionCallback& callback)); |
415 MOCK_METHOD4(CancelMidiSysExPermissionRequest, | 416 MOCK_METHOD4(CancelMidiSysExPermissionRequest, |
416 void(int render_process_id, | 417 void(int render_process_id, |
417 int render_view_id, | 418 int render_view_id, |
418 int bridge_id, | 419 int bridge_id, |
419 const GURL& requesting_frame)); | 420 const GURL& requesting_frame)); |
420 MOCK_METHOD6(RequestProtectedMediaIdentifierPermission, | 421 MOCK_METHOD6(RequestProtectedMediaIdentifierPermission, |
421 void(int render_process_id, | 422 void(int render_process_id, |
422 int render_view_id, | 423 int render_view_id, |
423 int bridge_id, | 424 int bridge_id, |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 .WillOnce(Return()); | 695 .WillOnce(Return()); |
695 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 696 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
696 .Times(0); | 697 .Times(0); |
697 | 698 |
698 download_manager_->RemoveAllDownloads(); | 699 download_manager_->RemoveAllDownloads(); |
699 // Because we're mocking the download item, the Remove call doesn't | 700 // Because we're mocking the download item, the Remove call doesn't |
700 // result in them being removed from the DownloadManager list. | 701 // result in them being removed from the DownloadManager list. |
701 } | 702 } |
702 | 703 |
703 } // namespace content | 704 } // namespace content |
OLD | NEW |