| OLD | NEW |
| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/test/null_task_runner.h" | 10 #include "base/test/null_task_runner.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 base::FilePath TestBrowserContext::GetPath() const { | 77 base::FilePath TestBrowserContext::GetPath() const { |
| 78 return browser_context_dir_.GetPath(); | 78 return browser_context_dir_.GetPath(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 std::unique_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate( | 81 std::unique_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate( |
| 82 const base::FilePath& partition_path) { | 82 const base::FilePath& partition_path) { |
| 83 return std::unique_ptr<ZoomLevelDelegate>(); | 83 return std::unique_ptr<ZoomLevelDelegate>(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 bool TestBrowserContext::IsOffTheRecord() const { | 86 bool TestBrowserContext::IsOffTheRecord() const { |
| 87 return false; | 87 return is_off_the_record_; |
| 88 } | 88 } |
| 89 | 89 |
| 90 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { | 90 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { |
| 91 return NULL; | 91 return NULL; |
| 92 } | 92 } |
| 93 | 93 |
| 94 ResourceContext* TestBrowserContext::GetResourceContext() { | 94 ResourceContext* TestBrowserContext::GetResourceContext() { |
| 95 if (!resource_context_) | 95 if (!resource_context_) |
| 96 resource_context_.reset(new MockResourceContext( | 96 resource_context_.reset(new MockResourceContext( |
| 97 GetRequestContext()->GetURLRequestContext())); | 97 GetRequestContext()->GetURLRequestContext())); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 net::URLRequestContextGetter* | 149 net::URLRequestContextGetter* |
| 150 TestBrowserContext::CreateMediaRequestContextForStoragePartition( | 150 TestBrowserContext::CreateMediaRequestContextForStoragePartition( |
| 151 const base::FilePath& partition_path, | 151 const base::FilePath& partition_path, |
| 152 bool in_memory) { | 152 bool in_memory) { |
| 153 return NULL; | 153 return NULL; |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace content | 156 } // namespace content |
| OLD | NEW |