[email protected] | c10f8536 | 2013-04-26 08:20:10 | [diff] [blame] | 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. | ||||
[email protected] | c4a5d447 | 2013-09-27 05:11:04 | [diff] [blame] | 15 | class CHROMEOS_EXPORT FakeImageBurnerClient : public ImageBurnerClient { |
[email protected] | c10f8536 | 2013-04-26 08:20:10 | [diff] [blame] | 16 | public: |
17 | FakeImageBurnerClient(); | ||||
dcheng | 0280cb6 | 2015-01-16 07:37:50 | [diff] [blame] | 18 | ~FakeImageBurnerClient() override; |
[email protected] | c10f8536 | 2013-04-26 08:20:10 | [diff] [blame] | 19 | |
[email protected] | c5fd536 | 2013-08-27 12:23:04 | [diff] [blame] | 20 | // ImageBurnerClient overrides |
dcheng | 0280cb6 | 2015-01-16 07:37:50 | [diff] [blame] | 21 | void Init(dbus::Bus* bus) override; |
22 | void BurnImage(const std::string& from_path, | ||||
23 | const std::string& to_path, | ||||
24 | const ErrorCallback& error_callback) override; | ||||
25 | void SetEventHandlers( | ||||
[email protected] | c10f8536 | 2013-04-26 08:20:10 | [diff] [blame] | 26 | const BurnFinishedHandler& burn_finished_handler, |
mostynb | 4f4cf14 | 2014-10-06 13:57:52 | [diff] [blame] | 27 | const BurnProgressUpdateHandler& burn_progress_update_handler) override; |
dcheng | 0280cb6 | 2015-01-16 07:37:50 | [diff] [blame] | 28 | void ResetEventHandlers() override; |
[email protected] | c10f8536 | 2013-04-26 08:20:10 | [diff] [blame] | 29 | |
30 | private: | ||||
31 | DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient); | ||||
32 | }; | ||||
33 | |||||
34 | } // namespace chromeos | ||||
35 | |||||
36 | #endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |