Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: content/browser/download/download_manager_impl_unittest.cc

Issue 185863003: [Media] Add user gesture reporting for API calls to midi and media streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_METHOD6(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 bool user_gesture,
412 const MidiSysExPermissionCallback& callback)); 413 const MidiSysExPermissionCallback& callback));
413 MOCK_METHOD4(CancelMidiSysExPermissionRequest, 414 MOCK_METHOD4(CancelMidiSysExPermissionRequest,
414 void(int render_process_id, 415 void(int render_process_id,
415 int render_view_id, 416 int render_view_id,
416 int bridge_id, 417 int bridge_id,
417 const GURL& requesting_frame)); 418 const GURL& requesting_frame));
418 MOCK_METHOD6(RequestProtectedMediaIdentifierPermission, 419 MOCK_METHOD6(RequestProtectedMediaIdentifierPermission,
419 void(int render_process_id, 420 void(int render_process_id,
420 int render_view_id, 421 int render_view_id,
421 int bridge_id, 422 int bridge_id,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 .WillOnce(Return()); 693 .WillOnce(Return());
693 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 694 EXPECT_CALL(GetMockDownloadItem(3), Remove())
694 .Times(0); 695 .Times(0);
695 696
696 download_manager_->RemoveAllDownloads(); 697 download_manager_->RemoveAllDownloads();
697 // Because we're mocking the download item, the Remove call doesn't 698 // Because we're mocking the download item, the Remove call doesn't
698 // result in them being removed from the DownloadManager list. 699 // result in them being removed from the DownloadManager list.
699 } 700 }
700 701
701 } // namespace content 702 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698