OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
| 6 #define EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
| 7 |
| 8 #include "extensions/browser/api/runtime/runtime_api_delegate.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 class TestRuntimeAPIDelegate : public RuntimeAPIDelegate { |
| 13 public: |
| 14 // RuntimeAPIDelegate implementation. |
| 15 virtual void AddUpdateObserver(UpdateObserver* observer) OVERRIDE; |
| 16 virtual void RemoveUpdateObserver(UpdateObserver* observer) OVERRIDE; |
| 17 virtual base::Version GetPreviousExtensionVersion( |
| 18 const Extension* extension) OVERRIDE; |
| 19 virtual void ReloadExtension(const std::string& extension_id) OVERRIDE; |
| 20 virtual bool CheckForUpdates(const std::string& extension_id, |
| 21 const UpdateCheckCallback& callback) OVERRIDE; |
| 22 virtual void OpenURL(const GURL& uninstall_url) OVERRIDE; |
| 23 virtual bool GetPlatformInfo( |
| 24 core_api::runtime::GetPlatformInfo::Results::PlatformInfo* info) OVERRIDE; |
| 25 virtual bool RestartDevice(std::string* error_message) OVERRIDE; |
| 26 }; |
| 27 |
| 28 } // namespace extensions |
| 29 |
| 30 #endif // EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
OLD | NEW |