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

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

Issue 261363002: Rename BrowserPluginGuestManagerDelegate to BrowserPluginGuestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_cleanupguestmanager
Patch Set: Created 6 years, 7 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 int group_id, 425 int group_id,
426 const GURL& requesting_frame, 426 const GURL& requesting_frame,
427 const ProtectedMediaIdentifierPermissionCallback& 427 const ProtectedMediaIdentifierPermissionCallback&
428 callback)); 428 callback));
429 MOCK_METHOD1(CancelProtectedMediaIdentifierPermissionRequests, 429 MOCK_METHOD1(CancelProtectedMediaIdentifierPermissionRequests,
430 void(int group_id)); 430 void(int group_id));
431 MOCK_METHOD0(GetResourceContext, ResourceContext*()); 431 MOCK_METHOD0(GetResourceContext, ResourceContext*());
432 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); 432 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*());
433 MOCK_METHOD0(GetGeolocationPermissionContext, 433 MOCK_METHOD0(GetGeolocationPermissionContext,
434 GeolocationPermissionContext* ()); 434 GeolocationPermissionContext* ());
435 MOCK_METHOD0(GetGuestManagerDelegate, 435 MOCK_METHOD0(GetGuestManager,
lazyboy 2014/05/05 21:47:46 nit: fits in one line.
Fady Samuel 2014/05/07 19:01:51 Done.
436 BrowserPluginGuestManagerDelegate* ()); 436 BrowserPluginGuestManager* ());
437 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); 437 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*());
438 }; 438 };
439 439
440 class MockDownloadManagerObserver : public DownloadManager::Observer { 440 class MockDownloadManagerObserver : public DownloadManager::Observer {
441 public: 441 public:
442 MockDownloadManagerObserver() {} 442 MockDownloadManagerObserver() {}
443 ~MockDownloadManagerObserver() {} 443 ~MockDownloadManagerObserver() {}
444 MOCK_METHOD2(OnDownloadCreated, void( 444 MOCK_METHOD2(OnDownloadCreated, void(
445 DownloadManager*, DownloadItem*)); 445 DownloadManager*, DownloadItem*));
446 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); 446 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*));
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 .WillOnce(Return()); 697 .WillOnce(Return());
698 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 698 EXPECT_CALL(GetMockDownloadItem(3), Remove())
699 .Times(0); 699 .Times(0);
700 700
701 download_manager_->RemoveAllDownloads(); 701 download_manager_->RemoveAllDownloads();
702 // Because we're mocking the download item, the Remove call doesn't 702 // Because we're mocking the download item, the Remove call doesn't
703 // result in them being removed from the DownloadManager list. 703 // result in them being removed from the DownloadManager list.
704 } 704 }
705 705
706 } // namespace content 706 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698