| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/test_runtime_api_delegate.h" | 5 #include "extensions/browser/test_runtime_api_delegate.h" |
| 6 | 6 |
| 7 #include "extensions/common/api/runtime.h" | 7 #include "extensions/common/api/runtime.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 using core_api::runtime::PlatformInfo; | 11 using api::runtime::PlatformInfo; |
| 12 | 12 |
| 13 TestRuntimeAPIDelegate::TestRuntimeAPIDelegate() { | 13 TestRuntimeAPIDelegate::TestRuntimeAPIDelegate() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 TestRuntimeAPIDelegate::~TestRuntimeAPIDelegate() { | 16 TestRuntimeAPIDelegate::~TestRuntimeAPIDelegate() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 void TestRuntimeAPIDelegate::AddUpdateObserver(UpdateObserver* observer) { | 19 void TestRuntimeAPIDelegate::AddUpdateObserver(UpdateObserver* observer) { |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 const UpdateCheckCallback& callback) { | 35 const UpdateCheckCallback& callback) { |
| 36 return false; | 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 void TestRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) { | 39 void TestRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) { |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { | 42 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { |
| 43 // TODO(rockot): This probably isn't right. Maybe this delegate should just | 43 // TODO(rockot): This probably isn't right. Maybe this delegate should just |
| 44 // support manual PlatformInfo override for tests if necessary. | 44 // support manual PlatformInfo override for tests if necessary. |
| 45 info->os = core_api::runtime::PLATFORM_OS_CROS; | 45 info->os = api::runtime::PLATFORM_OS_CROS; |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool TestRuntimeAPIDelegate::RestartDevice(std::string* error_message) { | 49 bool TestRuntimeAPIDelegate::RestartDevice(std::string* error_message) { |
| 50 return false; | 50 return false; |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace extensions | 53 } // namespace extensions |
| OLD | NEW |