Index: extensions/browser/test_runtime_api_delegate.h |
diff --git a/extensions/browser/test_runtime_api_delegate.h b/extensions/browser/test_runtime_api_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2b19e3878768855b5dcc7364f4aac51b4b84c84b |
--- /dev/null |
+++ b/extensions/browser/test_runtime_api_delegate.h |
@@ -0,0 +1,32 @@ |
+// 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. |
+ |
+#ifndef EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
+#define EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
+ |
+#include "extensions/browser/runtime_api_delegate.h" |
+ |
+namespace extensions { |
+ |
+class TestRuntimeAPIDelegate : public RuntimeAPIDelegate { |
+ public: |
+ // RuntimeAPIDelegate implementation. |
+ virtual void RegisterUpdateObserver(UpdateObserver* observer) OVERRIDE; |
+ virtual void UnregisterUpdateObserver(UpdateObserver* observer) OVERRIDE; |
+ virtual base::Version GetOldExtensionVersion( |
+ const Extension* extension) OVERRIDE; |
+ virtual void MaybeReloadExtension(const std::string& extension_id) OVERRIDE; |
+ virtual bool RequestUpdateCheck( |
+ const std::string& extension_id, |
+ const RuntimeAPI::UpdateCheckCallback& callback) OVERRIDE; |
+ virtual void HandleUninstall(const std::string& extension_id, |
+ const GURL& uninstall_url) OVERRIDE; |
+ virtual bool GetPlatformInfo( |
+ core_api::runtime::GetPlatformInfo::Results::PlatformInfo* info) OVERRIDE; |
+ virtual bool RequestRestart(std::string* error_message) OVERRIDE; |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |