PermissionRequestCreatorApiary: switch from deprecated "namespace" to "eventType"
[chromium-blink-merge.git] / chromeos / dbus / fake_image_burner_client.h
blob09417060d31acb4e60d4977c436962ee313c33ff
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.
5 #ifndef CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_
8 #include <string>
10 #include "chromeos/dbus/image_burner_client.h"
12 namespace chromeos {
14 // A fake implemetation of ImageBurnerClient. This class does nothing.
15 class CHROMEOS_EXPORT FakeImageBurnerClient : public ImageBurnerClient {
16 public:
17 FakeImageBurnerClient();
18 ~FakeImageBurnerClient() override;
20 // ImageBurnerClient overrides
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(
26 const BurnFinishedHandler& burn_finished_handler,
27 const BurnProgressUpdateHandler& burn_progress_update_handler) override;
28 void ResetEventHandlers() override;
30 private:
31 DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient);
34 } // namespace chromeos
36 #endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_