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

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

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version2: added group_id to PermissionRequestID class Created 6 years, 11 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
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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
419 void(int render_process_id,
420 int render_view_id,
421 int bridge_id,
422 int group_id,
423 const GURL& requesting_frame,
424 const ProtectedMediaIdentifierPermissionCallback&
425 callback));
xhwang 2013/12/30 19:00:59 indent callback?
Kibeom Kim (inactive) 2013/12/30 21:52:24 Done.
426 MOCK_METHOD1(CancelProtectedMediaIdentifierPermissionRequests,
427 void(int group_id));
418 MOCK_METHOD0(GetResourceContext, ResourceContext*()); 428 MOCK_METHOD0(GetResourceContext, ResourceContext*());
419 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); 429 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*());
420 MOCK_METHOD0(GetGeolocationPermissionContext, 430 MOCK_METHOD0(GetGeolocationPermissionContext,
421 GeolocationPermissionContext* ()); 431 GeolocationPermissionContext* ());
422 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); 432 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*());
423 }; 433 };
424 434
425 class MockDownloadManagerObserver : public DownloadManager::Observer { 435 class MockDownloadManagerObserver : public DownloadManager::Observer {
426 public: 436 public:
427 MockDownloadManagerObserver() {} 437 MockDownloadManagerObserver() {}
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 .WillOnce(Return()); 692 .WillOnce(Return());
683 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 693 EXPECT_CALL(GetMockDownloadItem(3), Remove())
684 .Times(0); 694 .Times(0);
685 695
686 download_manager_->RemoveAllDownloads(); 696 download_manager_->RemoveAllDownloads();
687 // 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
688 // result in them being removed from the DownloadManager list. 698 // result in them being removed from the DownloadManager list.
689 } 699 }
690 700
691 } // namespace content 701 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698