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

Side by Side Diff: content/public/test/test_browser_context.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/test/null_task_runner.h" 8 #include "base/test/null_task_runner.h"
9 #include "content/public/test/mock_resource_context.h" 9 #include "content/public/test/mock_resource_context.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 TestBrowserContext::~TestBrowserContext() { 48 TestBrowserContext::~TestBrowserContext() {
49 } 49 }
50 50
51 base::FilePath TestBrowserContext::TakePath() { 51 base::FilePath TestBrowserContext::TakePath() {
52 return browser_context_dir_.Take(); 52 return browser_context_dir_.Take();
53 } 53 }
54 54
55 void TestBrowserContext::SetSpecialStoragePolicy( 55 void TestBrowserContext::SetSpecialStoragePolicy(
56 quota::SpecialStoragePolicy* policy) { 56 storage::SpecialStoragePolicy* policy) {
57 special_storage_policy_ = policy; 57 special_storage_policy_ = policy;
58 } 58 }
59 59
60 base::FilePath TestBrowserContext::GetPath() const { 60 base::FilePath TestBrowserContext::GetPath() const {
61 return browser_context_dir_.path(); 61 return browser_context_dir_.path();
62 } 62 }
63 63
64 bool TestBrowserContext::IsOffTheRecord() const { 64 bool TestBrowserContext::IsOffTheRecord() const {
65 return false; 65 return false;
66 } 66 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 if (!resource_context_) 102 if (!resource_context_)
103 resource_context_.reset(new MockResourceContext( 103 resource_context_.reset(new MockResourceContext(
104 GetRequestContext()->GetURLRequestContext())); 104 GetRequestContext()->GetURLRequestContext()));
105 return resource_context_.get(); 105 return resource_context_.get();
106 } 106 }
107 107
108 BrowserPluginGuestManager* TestBrowserContext::GetGuestManager() { 108 BrowserPluginGuestManager* TestBrowserContext::GetGuestManager() {
109 return NULL; 109 return NULL;
110 } 110 }
111 111
112 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 112 storage::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
113 return special_storage_policy_.get(); 113 return special_storage_policy_.get();
114 } 114 }
115 115
116 PushMessagingService* TestBrowserContext::GetPushMessagingService() { 116 PushMessagingService* TestBrowserContext::GetPushMessagingService() {
117 return NULL; 117 return NULL;
118 } 118 }
119 119
120 SSLHostStateDelegate* TestBrowserContext::GetSSLHostStateDelegate() { 120 SSLHostStateDelegate* TestBrowserContext::GetSSLHostStateDelegate() {
121 return NULL; 121 return NULL;
122 } 122 }
123 123
124 } // namespace content 124 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.h ('k') | content/public/test/test_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698