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 "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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 void TestBrowserContext::SetSpecialStoragePolicy( | 53 void TestBrowserContext::SetSpecialStoragePolicy( |
54 storage::SpecialStoragePolicy* policy) { | 54 storage::SpecialStoragePolicy* policy) { |
55 special_storage_policy_ = policy; | 55 special_storage_policy_ = policy; |
56 } | 56 } |
57 | 57 |
58 base::FilePath TestBrowserContext::GetPath() const { | 58 base::FilePath TestBrowserContext::GetPath() const { |
59 return browser_context_dir_.path(); | 59 return browser_context_dir_.path(); |
60 } | 60 } |
61 | 61 |
| 62 scoped_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate( |
| 63 const base::FilePath& partition_path) { |
| 64 return scoped_ptr<ZoomLevelDelegate>(); |
| 65 } |
| 66 |
62 bool TestBrowserContext::IsOffTheRecord() const { | 67 bool TestBrowserContext::IsOffTheRecord() const { |
63 return false; | 68 return false; |
64 } | 69 } |
65 | 70 |
66 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { | 71 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { |
67 return NULL; | 72 return NULL; |
68 } | 73 } |
69 | 74 |
70 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() { | 75 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() { |
71 if (!request_context_.get()) { | 76 if (!request_context_.get()) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 118 |
114 PushMessagingService* TestBrowserContext::GetPushMessagingService() { | 119 PushMessagingService* TestBrowserContext::GetPushMessagingService() { |
115 return NULL; | 120 return NULL; |
116 } | 121 } |
117 | 122 |
118 SSLHostStateDelegate* TestBrowserContext::GetSSLHostStateDelegate() { | 123 SSLHostStateDelegate* TestBrowserContext::GetSSLHostStateDelegate() { |
119 return NULL; | 124 return NULL; |
120 } | 125 } |
121 | 126 |
122 } // namespace content | 127 } // namespace content |
OLD | NEW |