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 |