| 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/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "content/public/test/mock_resource_context.h" | 8 #include "content/public/test/mock_resource_context.h" |
| 9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { | 52 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { |
| 53 return NULL; | 53 return NULL; |
| 54 } | 54 } |
| 55 | 55 |
| 56 net::URLRequestContextGetter* | 56 net::URLRequestContextGetter* |
| 57 TestBrowserContext::GetMediaRequestContextForRenderProcess( | 57 TestBrowserContext::GetMediaRequestContextForRenderProcess( |
| 58 int renderer_child_id) { | 58 int renderer_child_id) { |
| 59 return NULL; | 59 return NULL; |
| 60 } | 60 } |
| 61 | 61 |
| 62 ResourceContext* TestBrowserContext::GetResourceContext() { | 62 ResourceContext* TestBrowserContext::GetResourceContext( |
| 63 SiteInstance* instance) { |
| 63 if (!resource_context_.get()) | 64 if (!resource_context_.get()) |
| 64 resource_context_.reset(new MockResourceContext()); | 65 resource_context_.reset(new MockResourceContext()); |
| 65 return resource_context_.get(); | 66 return resource_context_.get(); |
| 66 } | 67 } |
| 67 | 68 |
| 68 GeolocationPermissionContext* | 69 GeolocationPermissionContext* |
| 69 TestBrowserContext::GetGeolocationPermissionContext() { | 70 TestBrowserContext::GetGeolocationPermissionContext() { |
| 70 return NULL; | 71 return NULL; |
| 71 } | 72 } |
| 72 | 73 |
| 73 SpeechRecognitionPreferences* | 74 SpeechRecognitionPreferences* |
| 74 TestBrowserContext::GetSpeechRecognitionPreferences() { | 75 TestBrowserContext::GetSpeechRecognitionPreferences() { |
| 75 return NULL; | 76 return NULL; |
| 76 } | 77 } |
| 77 | 78 |
| 78 bool TestBrowserContext::DidLastSessionExitCleanly() { | 79 bool TestBrowserContext::DidLastSessionExitCleanly() { |
| 79 return true; | 80 return true; |
| 80 } | 81 } |
| 81 | 82 |
| 82 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { | 83 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { |
| 83 return special_storage_policy_.get(); | 84 return special_storage_policy_.get(); |
| 84 } | 85 } |
| 85 | 86 |
| 86 } // namespace content | 87 } // namespace content |
| OLD | NEW |