blob: 09417060d31acb4e60d4977c436962ee313c33ff [file] [log] [blame]
[email protected]c10f85362013-04-26 08:20:101// 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
12namespace chromeos {
13
14// A fake implemetation of ImageBurnerClient. This class does nothing.
[email protected]c4a5d4472013-09-27 05:11:0415class CHROMEOS_EXPORT FakeImageBurnerClient : public ImageBurnerClient {
[email protected]c10f85362013-04-26 08:20:1016 public:
17 FakeImageBurnerClient();
dcheng0280cb62015-01-16 07:37:5018 ~FakeImageBurnerClient() override;
[email protected]c10f85362013-04-26 08:20:1019
[email protected]c5fd5362013-08-27 12:23:0420 // ImageBurnerClient overrides
dcheng0280cb62015-01-16 07:37:5021 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]c10f85362013-04-26 08:20:1026 const BurnFinishedHandler& burn_finished_handler,
mostynb4f4cf142014-10-06 13:57:5227 const BurnProgressUpdateHandler& burn_progress_update_handler) override;
dcheng0280cb62015-01-16 07:37:5028 void ResetEventHandlers() override;
[email protected]c10f85362013-04-26 08:20:1029
30 private:
31 DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient);
32};
33
34} // namespace chromeos
35
36#endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_