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