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

Unified Diff: extensions/browser/mock_extension_system.cc

Issue 460203002: Extract a MockExtensionSystem to be used with TestExtensionsBrowserClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: symbol visibility issues 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/mock_extension_system.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/mock_extension_system.cc
diff --git a/extensions/browser/mock_extension_system.cc b/extensions/browser/mock_extension_system.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3c38eac14154ccfbfc5ff6e1554082c139cf8dfc
--- /dev/null
+++ b/extensions/browser/mock_extension_system.cc
@@ -0,0 +1,98 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/browser/mock_extension_system.h"
+
+#include "extensions/common/extension_set.h"
+
+namespace extensions {
+
+//
+// MockExtensionSystem
+//
+
+MockExtensionSystem::MockExtensionSystem(content::BrowserContext* context)
+ : browser_context_(context) {
+}
+
+MockExtensionSystem::~MockExtensionSystem() {
+}
+
+void MockExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
+}
+
+ExtensionService* MockExtensionSystem::extension_service() {
+ return NULL;
+}
+
+RuntimeData* MockExtensionSystem::runtime_data() {
+ return NULL;
+}
+
+ManagementPolicy* MockExtensionSystem::management_policy() {
+ return NULL;
+}
+
+UserScriptMaster* MockExtensionSystem::user_script_master() {
+ return NULL;
+}
+
+ProcessManager* MockExtensionSystem::process_manager() {
+ return NULL;
+}
+
+StateStore* MockExtensionSystem::state_store() {
+ return NULL;
+}
+
+StateStore* MockExtensionSystem::rules_store() {
+ return NULL;
+}
+
+InfoMap* MockExtensionSystem::info_map() {
+ return NULL;
+}
+
+LazyBackgroundTaskQueue* MockExtensionSystem::lazy_background_task_queue() {
+ return NULL;
+}
+
+EventRouter* MockExtensionSystem::event_router() {
+ return NULL;
+}
+
+ExtensionWarningService* MockExtensionSystem::warning_service() {
+ return NULL;
+}
+
+Blacklist* MockExtensionSystem::blacklist() {
+ return NULL;
+}
+
+ErrorConsole* MockExtensionSystem::error_console() {
+ return NULL;
+}
+
+InstallVerifier* MockExtensionSystem::install_verifier() {
+ return NULL;
+}
+
+QuotaService* MockExtensionSystem::quota_service() {
+ return NULL;
+}
+
+const OneShotEvent& MockExtensionSystem::ready() const {
+ return ready_;
+}
+
+ContentVerifier* MockExtensionSystem::content_verifier() {
+ return NULL;
+}
+
+scoped_ptr<ExtensionSet> MockExtensionSystem::GetDependentExtensions(
+ const Extension* extension) {
+ return scoped_ptr<ExtensionSet>();
+}
+
+} // namespace extensions
« no previous file with comments | « extensions/browser/mock_extension_system.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698