| 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 #ifndef CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chromeos/dbus/image_loader_client.h" | 11 #include "chromeos/dbus/image_loader_client.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 // A fake implementation of ImageLoaderClient. This class does nothing. | 15 // A fake implementation of ImageLoaderClient. This class does nothing. |
| 16 class CHROMEOS_EXPORT FakeImageLoaderClient : public ImageLoaderClient { | 16 class CHROMEOS_EXPORT FakeImageLoaderClient : public ImageLoaderClient { |
| 17 public: | 17 public: |
| 18 FakeImageLoaderClient() {} | 18 FakeImageLoaderClient() {} |
| 19 ~FakeImageLoaderClient() override {} | 19 ~FakeImageLoaderClient() override {} |
| 20 | 20 |
| 21 // DBusClient ovveride. | 21 // DBusClient ovveride. |
| 22 void Init(dbus::Bus* dbus) override {} | 22 void Init(dbus::Bus* dbus) override {} |
| 23 | 23 |
| 24 // ImageLoaderClient override: | 24 // ImageLoaderClient override: |
| 25 void RegisterComponent(const std::string& name, | 25 void RegisterComponent(const std::string& name, |
| 26 const std::string& version, | 26 const std::string& version, |
| 27 const std::string& component_folder_abs_path, | 27 const std::string& component_folder_abs_path, |
| 28 const BoolDBusMethodCallback& callback) override; | 28 const BoolDBusMethodCallback& callback) override; |
| 29 void LoadComponent(const std::string& name, |
| 30 const StringDBusMethodCallback& callback) override; |
| 29 | 31 |
| 30 private: | 32 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(FakeImageLoaderClient); | 33 DISALLOW_COPY_AND_ASSIGN(FakeImageLoaderClient); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace chromeos | 36 } // namespace chromeos |
| 35 | 37 |
| 36 #endif // CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ | 38 #endif // CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ |
| OLD | NEW |