OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chromeos/dbus/image_burner_client.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 // A fake implemetation of ImageBurnerClient. This class does nothing. |
| 15 class FakeImageBurnerClient : public ImageBurnerClient { |
| 16 public: |
| 17 FakeImageBurnerClient(); |
| 18 virtual ~FakeImageBurnerClient(); |
| 19 |
| 20 // ImageBurnerClient overrides. |
| 21 virtual void BurnImage(const std::string& from_path, |
| 22 const std::string& to_path, |
| 23 const ErrorCallback& error_callback) OVERRIDE; |
| 24 virtual void SetEventHandlers( |
| 25 const BurnFinishedHandler& burn_finished_handler, |
| 26 const BurnProgressUpdateHandler& burn_progress_update_handler) OVERRIDE; |
| 27 virtual void ResetEventHandlers() OVERRIDE; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient); |
| 31 }; |
| 32 |
| 33 } // namespace chromeos |
| 34 |
| 35 #endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |
OLD | NEW |