OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chromeos/dbus/fake_image_loader_client.h" | 5 #include "chromeos/dbus/fake_image_loader_client.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace chromeos { |
8 | 8 |
9 // ImageLoaderClient override: | 9 // ImageLoaderClient override: |
10 void FakeImageLoaderClient::RegisterComponent( | 10 void FakeImageLoaderClient::RegisterComponent( |
11 const std::string& name, | 11 const std::string& name, |
12 const std::string& version, | 12 const std::string& version, |
13 const std::string& component_folder_abs_path, | 13 const std::string& component_folder_abs_path, |
14 const BoolDBusMethodCallback& callback) { | 14 const BoolDBusMethodCallback& callback) { |
15 callback.Run(DBUS_METHOD_CALL_FAILURE, false); | 15 callback.Run(DBUS_METHOD_CALL_FAILURE, false); |
16 } | 16 } |
| 17 void FakeImageLoaderClient::LoadComponent( |
| 18 const std::string& name, |
| 19 const StringDBusMethodCallback& callback) { |
| 20 callback.Run(DBUS_METHOD_CALL_FAILURE, ""); |
| 21 } |
17 | 22 |
18 } // namespace chromeos | 23 } // namespace chromeos |
OLD | NEW |