Update V8 to version 4.7.16.
[chromium-blink-merge.git] / extensions / browser / test_runtime_api_delegate.cc
blobd9624b5839d79cb94fb6296177b013b58527694b
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"
9 namespace extensions {
11 using 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) {
36 return false;
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 = api::runtime::PLATFORM_OS_CROS;
46 return true;
49 bool TestRuntimeAPIDelegate::RestartDevice(std::string* error_message) {
50 return false;
53 } // namespace extensions