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

Unified Diff: athena/extensions/test/test_extensions_delegate.cc

Issue 487843003: ExtensionDelegate to abstract extension implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps 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 | « athena/extensions/public/extensions_delegate.h ('k') | athena/main/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/test/test_extensions_delegate.cc
diff --git a/athena/extensions/test/test_extensions_delegate.cc b/athena/extensions/test/test_extensions_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cac6a007eae5c0b3c50dcad6e8e0d54bc6e54705
--- /dev/null
+++ b/athena/extensions/test/test_extensions_delegate.cc
@@ -0,0 +1,40 @@
+// 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 "athena/extensions/public/extensions_delegate.h"
+#include "base/macros.h"
+#include "extensions/common/extension_set.h"
+
+namespace athena {
+namespace {
+
+class TestExtensionsDelegate : public ExtensionsDelegate {
+ public:
+ TestExtensionsDelegate() {}
+
+ virtual ~TestExtensionsDelegate() {}
+
+ private:
+ // ExtensionsDelegate:
+ virtual content::BrowserContext* GetBrowserContext() const OVERRIDE {
+ return NULL;
+ }
+ virtual const extensions::ExtensionSet& GetInstalledExtensions() OVERRIDE {
+ return shell_extensions_;
+ }
+ virtual void LaunchApp(const std::string& app_id) OVERRIDE {}
+
+ extensions::ExtensionSet shell_extensions_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestExtensionsDelegate);
+};
+
+} // namespace
+
+// static
+void ExtensionsDelegate::CreateExtensionsDelegateForTest() {
+ new TestExtensionsDelegate();
+}
+
+} // namespace athena
« no previous file with comments | « athena/extensions/public/extensions_delegate.h ('k') | athena/main/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698