| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/test_extensions_browser_client.h" | 5 #include "extensions/browser/test_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "extensions/browser/app_sorting.h" | 8 #include "extensions/browser/app_sorting.h" |
| 9 #include "extensions/browser/extension_host_delegate.h" | 9 #include "extensions/browser/extension_host_delegate.h" |
| 10 #include "extensions/browser/test_runtime_api_delegate.h" | 10 #include "extensions/browser/test_runtime_api_delegate.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 bool TestExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; } | 142 bool TestExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; } |
| 143 | 143 |
| 144 ApiActivityMonitor* TestExtensionsBrowserClient::GetApiActivityMonitor( | 144 ApiActivityMonitor* TestExtensionsBrowserClient::GetApiActivityMonitor( |
| 145 BrowserContext* context) { | 145 BrowserContext* context) { |
| 146 return NULL; | 146 return NULL; |
| 147 } | 147 } |
| 148 | 148 |
| 149 ExtensionSystemProvider* | 149 ExtensionSystemProvider* |
| 150 TestExtensionsBrowserClient::GetExtensionSystemFactory() { | 150 TestExtensionsBrowserClient::GetExtensionSystemFactory() { |
| 151 // Tests requiring an extension system should override this function. | 151 DCHECK(extension_system_factory_); |
| 152 NOTREACHED(); | 152 return extension_system_factory_; |
| 153 return NULL; | |
| 154 } | 153 } |
| 155 | 154 |
| 156 void TestExtensionsBrowserClient::RegisterExtensionFunctions( | 155 void TestExtensionsBrowserClient::RegisterExtensionFunctions( |
| 157 ExtensionFunctionRegistry* registry) const {} | 156 ExtensionFunctionRegistry* registry) const {} |
| 158 | 157 |
| 159 scoped_ptr<RuntimeAPIDelegate> | 158 scoped_ptr<RuntimeAPIDelegate> |
| 160 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( | 159 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
| 161 content::BrowserContext* context) const { | 160 content::BrowserContext* context) const { |
| 162 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); | 161 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); |
| 163 } | 162 } |
| 164 | 163 |
| 165 ComponentExtensionResourceManager* | 164 ComponentExtensionResourceManager* |
| 166 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { | 165 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
| 167 return NULL; | 166 return NULL; |
| 168 } | 167 } |
| 169 | 168 |
| 170 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { | 169 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { |
| 171 return NULL; | 170 return NULL; |
| 172 } | 171 } |
| 173 | 172 |
| 174 } // namespace extensions | 173 } // namespace extensions |
| OLD | NEW |