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

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

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for commit Created 7 years, 5 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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*()); 393 MOCK_METHOD0(GetRequestContext, net::URLRequestContextGetter*());
394 MOCK_METHOD1(GetRequestContextForRenderProcess, 394 MOCK_METHOD1(GetRequestContextForRenderProcess,
395 net::URLRequestContextGetter*(int renderer_child_id)); 395 net::URLRequestContextGetter*(int renderer_child_id));
396 MOCK_METHOD0(GetMediaRequestContext, 396 MOCK_METHOD0(GetMediaRequestContext,
397 net::URLRequestContextGetter*()); 397 net::URLRequestContextGetter*());
398 MOCK_METHOD1(GetMediaRequestContextForRenderProcess, 398 MOCK_METHOD1(GetMediaRequestContextForRenderProcess,
399 net::URLRequestContextGetter*(int renderer_child_id)); 399 net::URLRequestContextGetter*(int renderer_child_id));
400 MOCK_METHOD2(GetMediaRequestContextForStoragePartition, 400 MOCK_METHOD2(GetMediaRequestContextForStoragePartition,
401 net::URLRequestContextGetter*( 401 net::URLRequestContextGetter*(
402 const base::FilePath& partition_path, bool in_memory)); 402 const base::FilePath& partition_path, bool in_memory));
403 MOCK_METHOD4(RequestMIDISysExPermission,
404 void(int render_process_id,
405 int render_view_id,
406 const GURL& requesting_frame,
407 const MIDISysExPermissionCallback& callback));
403 MOCK_METHOD0(GetResourceContext, ResourceContext*()); 408 MOCK_METHOD0(GetResourceContext, ResourceContext*());
404 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); 409 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*());
405 MOCK_METHOD0(GetGeolocationPermissionContext, 410 MOCK_METHOD0(GetGeolocationPermissionContext,
406 GeolocationPermissionContext* ()); 411 GeolocationPermissionContext* ());
407 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*()); 412 MOCK_METHOD0(GetSpecialStoragePolicy, quota::SpecialStoragePolicy*());
408 }; 413 };
409 414
410 class MockDownloadManagerObserver : public DownloadManager::Observer { 415 class MockDownloadManagerObserver : public DownloadManager::Observer {
411 public: 416 public:
412 MockDownloadManagerObserver() {} 417 MockDownloadManagerObserver() {}
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 .WillOnce(Return()); 667 .WillOnce(Return());
663 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 668 EXPECT_CALL(GetMockDownloadItem(3), Remove())
664 .Times(0); 669 .Times(0);
665 670
666 download_manager_->RemoveAllDownloads(); 671 download_manager_->RemoveAllDownloads();
667 // Because we're mocking the download item, the Remove call doesn't 672 // Because we're mocking the download item, the Remove call doesn't
668 // result in them being removed from the DownloadManager list. 673 // result in them being removed from the DownloadManager list.
669 } 674 }
670 675
671 } // namespace content 676 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698