| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BURNER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "chromeos/dbus/image_burner_client.h" | 11 #include "chromeos/dbus/image_burner_client.h" |
| 11 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 | 14 |
| 14 // A fake implemetation of ImageBurnerClient. This class does nothing. | 15 // A fake implemetation of ImageBurnerClient. This class does nothing. |
| 15 class CHROMEOS_EXPORT FakeImageBurnerClient : public ImageBurnerClient { | 16 class CHROMEOS_EXPORT FakeImageBurnerClient : public ImageBurnerClient { |
| 16 public: | 17 public: |
| 17 FakeImageBurnerClient(); | 18 FakeImageBurnerClient(); |
| 18 ~FakeImageBurnerClient() override; | 19 ~FakeImageBurnerClient() override; |
| 19 | 20 |
| 20 // ImageBurnerClient overrides | 21 // ImageBurnerClient overrides |
| 21 void Init(dbus::Bus* bus) override; | 22 void Init(dbus::Bus* bus) override; |
| 22 void BurnImage(const std::string& from_path, | 23 void BurnImage(const std::string& from_path, |
| 23 const std::string& to_path, | 24 const std::string& to_path, |
| 24 const ErrorCallback& error_callback) override; | 25 const ErrorCallback& error_callback) override; |
| 25 void SetEventHandlers( | 26 void SetEventHandlers( |
| 26 const BurnFinishedHandler& burn_finished_handler, | 27 const BurnFinishedHandler& burn_finished_handler, |
| 27 const BurnProgressUpdateHandler& burn_progress_update_handler) override; | 28 const BurnProgressUpdateHandler& burn_progress_update_handler) override; |
| 28 void ResetEventHandlers() override; | 29 void ResetEventHandlers() override; |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient); | 32 DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace chromeos | 35 } // namespace chromeos |
| 35 | 36 |
| 36 #endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ | 37 #endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |
| OLD | NEW |