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

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: 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
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..513b5972956e2330ce273bc446edad500780c6ef
--- /dev/null
+++ b/extensions/browser/mock_extension_system.cc
@@ -0,0 +1,99 @@
+// 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 "content/public/browser/browser_context.h"
James Cook 2014/08/12 15:46:27 Do you need this header?
Yoyo Zhou 2014/08/12 22:05:47 Good call.
+#include "extensions/common/extension_set.h"
James Cook 2014/08/12 15:46:27 Aside: This is why I don't like CreateFoo() method
Yoyo Zhou 2014/08/12 22:05:47 It is unfortunate.
+
+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

Powered by Google App Engine
This is Rietveld 408576698