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

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch unittest fix from michael Created 8 years, 3 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 "chrome/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 net::URLRequestContextGetter* TestingProfile::GetMediaRequestContext() { 652 net::URLRequestContextGetter* TestingProfile::GetMediaRequestContext() {
653 return NULL; 653 return NULL;
654 } 654 }
655 655
656 net::URLRequestContextGetter* 656 net::URLRequestContextGetter*
657 TestingProfile::GetMediaRequestContextForRenderProcess( 657 TestingProfile::GetMediaRequestContextForRenderProcess(
658 int renderer_child_id) { 658 int renderer_child_id) {
659 return NULL; 659 return NULL;
660 } 660 }
661 661
662 net::URLRequestContextGetter*
663 TestingProfile::GetMediaRequestContextForStoragePartition(
664 const std::string& partition_id) {
665 return NULL;
666 }
667
662 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { 668 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
663 if (!extensions_request_context_) 669 if (!extensions_request_context_)
664 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); 670 extensions_request_context_ = new TestExtensionURLRequestContextGetter();
665 return extensions_request_context_.get(); 671 return extensions_request_context_.get();
666 } 672 }
667 673
668 net::SSLConfigService* TestingProfile::GetSSLConfigService() { 674 net::SSLConfigService* TestingProfile::GetSSLConfigService() {
669 return NULL; 675 return NULL;
670 } 676 }
671 677
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { 835 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
830 DCHECK(!build_called_); 836 DCHECK(!build_called_);
831 build_called_ = true; 837 build_called_ = true;
832 return scoped_ptr<TestingProfile>(new TestingProfile( 838 return scoped_ptr<TestingProfile>(new TestingProfile(
833 path_, 839 path_,
834 delegate_, 840 delegate_,
835 extension_policy_, 841 extension_policy_,
836 pref_service_.Pass(), 842 pref_service_.Pass(),
837 user_cloud_policy_manager_.Pass())); 843 user_cloud_policy_manager_.Pass()));
838 } 844 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698