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_METHOD5(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 int bridge_id, |
411 const GURL& requesting_frame, | 411 const GURL& requesting_frame, |
412 const MIDISysExPermissionCallback& callback)); | 412 const MidiSysExPermissionCallback& callback)); |
413 MOCK_METHOD4(CancelMIDISysExPermissionRequest, | 413 MOCK_METHOD4(CancelMidiSysExPermissionRequest, |
414 void(int render_process_id, | 414 void(int render_process_id, |
415 int render_view_id, | 415 int render_view_id, |
416 int bridge_id, | 416 int bridge_id, |
417 const GURL& requesting_frame)); | 417 const GURL& requesting_frame)); |
418 MOCK_METHOD6(RequestProtectedMediaIdentifierPermission, | 418 MOCK_METHOD6(RequestProtectedMediaIdentifierPermission, |
419 void(int render_process_id, | 419 void(int render_process_id, |
420 int render_view_id, | 420 int render_view_id, |
421 int bridge_id, | 421 int bridge_id, |
422 int group_id, | 422 int group_id, |
423 const GURL& requesting_frame, | 423 const GURL& requesting_frame, |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 .WillOnce(Return()); | 692 .WillOnce(Return()); |
693 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 693 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
694 .Times(0); | 694 .Times(0); |
695 | 695 |
696 download_manager_->RemoveAllDownloads(); | 696 download_manager_->RemoveAllDownloads(); |
697 // Because we're mocking the download item, the Remove call doesn't | 697 // Because we're mocking the download item, the Remove call doesn't |
698 // result in them being removed from the DownloadManager list. | 698 // result in them being removed from the DownloadManager list. |
699 } | 699 } |
700 | 700 |
701 } // namespace content | 701 } // namespace content |
OLD | NEW |