| Index: extensions/browser/test_runtime_api_delegate.cc
|
| diff --git a/extensions/browser/test_runtime_api_delegate.cc b/extensions/browser/test_runtime_api_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..02d3dc7cbc0e3a4aa720dc619f82e4859bd7f9b5
|
| --- /dev/null
|
| +++ b/extensions/browser/test_runtime_api_delegate.cc
|
| @@ -0,0 +1,46 @@
|
| +// 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 "extensions/browser/test_runtime_api_delegate.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +using core_api::runtime::GetPlatformInfo::Results::PlatformInfo;
|
| +
|
| +void TestRuntimeAPIDelegate::RegisterUpdateObserver(UpdateObserver* observer) {
|
| +}
|
| +
|
| +void TestRuntimeAPIDelegate::UnregisterUpdateObserver(
|
| + UpdateObserver* observer) {
|
| +}
|
| +
|
| +base::Version TestRuntimeAPIDelegate::GetOldExtensionVersion(
|
| + const Extension* extension) {
|
| + return base::Version();
|
| +}
|
| +
|
| +void TestRuntimeAPIDelegate::MaybeReloadExtension(
|
| + const std::string& extension_id) {
|
| +}
|
| +
|
| +bool TestRuntimeAPIDelegate::RequestUpdateCheck(
|
| + const std::string& extension_id,
|
| + const RuntimeAPI::UpdateCheckCallback& callback) {
|
| + return false;
|
| +}
|
| +
|
| +void TestRuntimeAPIDelegate::HandleUninstall(const std::string& extension_id,
|
| + const GURL& uninstall_url) {
|
| +}
|
| +
|
| +bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) {
|
| + info->os = PlatformInfo::OS_CROS_;
|
| + return true;
|
| +}
|
| +
|
| +bool TestRuntimeAPIDelegate::RequestRestart(std::string* error_message) {
|
| + return false;
|
| +}
|
| +
|
| +} // namespace extensions
|
|
|