Chromium Code Reviews

Unified Diff: extensions/browser/test_runtime_api_delegate.h

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make clang, cros happy Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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..424896dd40778536d92f9a1793c23a80e866e151
--- /dev/null
+++ b/extensions/browser/test_runtime_api_delegate.h
@@ -0,0 +1,30 @@
+// 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/api/runtime/runtime_api_delegate.h"
+
+namespace extensions {
+
+class TestRuntimeAPIDelegate : public RuntimeAPIDelegate {
+ public:
+ // RuntimeAPIDelegate implementation.
+ virtual void AddUpdateObserver(UpdateObserver* observer) OVERRIDE;
+ virtual void RemoveUpdateObserver(UpdateObserver* observer) OVERRIDE;
+ virtual base::Version GetPreviousExtensionVersion(
+ const Extension* extension) OVERRIDE;
+ virtual void ReloadExtension(const std::string& extension_id) OVERRIDE;
+ virtual bool CheckForUpdates(const std::string& extension_id,
+ const UpdateCheckCallback& callback) OVERRIDE;
+ virtual void OpenURL(const GURL& uninstall_url) OVERRIDE;
+ virtual bool GetPlatformInfo(
+ core_api::runtime::GetPlatformInfo::Results::PlatformInfo* info) OVERRIDE;
+ virtual bool RestartDevice(std::string* error_message) OVERRIDE;
+};
+
+} // namespace extensions
+
+#endif // EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_

Powered by Google App Engine