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.
5 #include "extensions/browser/test_runtime_api_delegate.h"
7 #include "extensions/common/api/runtime.h"
11 using core_api::runtime::PlatformInfo
;
13 TestRuntimeAPIDelegate::TestRuntimeAPIDelegate() {
16 TestRuntimeAPIDelegate::~TestRuntimeAPIDelegate() {
19 void TestRuntimeAPIDelegate::AddUpdateObserver(UpdateObserver
* observer
) {
22 void TestRuntimeAPIDelegate::RemoveUpdateObserver(UpdateObserver
* observer
) {
25 base::Version
TestRuntimeAPIDelegate::GetPreviousExtensionVersion(
26 const Extension
* extension
) {
27 return base::Version();
30 void TestRuntimeAPIDelegate::ReloadExtension(const std::string
& extension_id
) {
33 bool TestRuntimeAPIDelegate::CheckForUpdates(
34 const std::string
& extension_id
,
35 const UpdateCheckCallback
& callback
) {
39 void TestRuntimeAPIDelegate::OpenURL(const GURL
& uninstall_url
) {
42 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo
* info
) {
43 // TODO(rockot): This probably isn't right. Maybe this delegate should just
44 // support manual PlatformInfo override for tests if necessary.
45 info
->os
= PlatformInfo::OS_CROS_
;
49 bool TestRuntimeAPIDelegate::RestartDevice(std::string
* error_message
) {
53 } // namespace extensions