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

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

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build 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,
436 BrowserPluginGuestManagerDelegate* ());
435 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); 437 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*());
436 }; 438 };
437 439
438 class MockDownloadManagerObserver : public DownloadManager::Observer { 440 class MockDownloadManagerObserver : public DownloadManager::Observer {
439 public: 441 public:
440 MockDownloadManagerObserver() {} 442 MockDownloadManagerObserver() {}
441 ~MockDownloadManagerObserver() {} 443 ~MockDownloadManagerObserver() {}
442 MOCK_METHOD2(OnDownloadCreated, void( 444 MOCK_METHOD2(OnDownloadCreated, void(
443 DownloadManager*, DownloadItem*)); 445 DownloadManager*, DownloadItem*));
444 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*)); 446 MOCK_METHOD1(ManagerGoingDown, void(DownloadManager*));
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 .WillOnce(Return()); 697 .WillOnce(Return());
696 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 698 EXPECT_CALL(GetMockDownloadItem(3), Remove())
697 .Times(0); 699 .Times(0);
698 700
699 download_manager_->RemoveAllDownloads(); 701 download_manager_->RemoveAllDownloads();
700 // 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
701 // result in them being removed from the DownloadManager list. 703 // result in them being removed from the DownloadManager list.
702 } 704 }
703 705
704 } // namespace content 706 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/test_guest_manager_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698