diff options
author | haruki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 08:20:10 +0000 |
---|---|---|
committer | haruki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 08:20:10 +0000 |
commit | c10f8536810abc39a9e4a5d93d65b262362734c6 (patch) | |
tree | a2f9bd5ab6ccf0a654e56474f3db1424dd52c9b0 /chromeos/dbus/fake_image_burner_client.h | |
parent | 637c17b8597c5e4f8b299acabbd62a0c03fb6c74 (diff) | |
download | chromium_src-c10f8536810abc39a9e4a5d93d65b262362734c6.zip chromium_src-c10f8536810abc39a9e4a5d93d65b262362734c6.tar.gz chromium_src-c10f8536810abc39a9e4a5d93d65b262362734c6.tar.bz2 |
dbus:Add FakeImageBurnerClient FakeSystemClockClient
These fake classes do nothing for now. We can implement fake behaviors when necessary.
BUG=234458,234499
TEST=trybots
Review URL: https://codereview.chromium.org/13890017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/fake_image_burner_client.h')
-rw-r--r-- | chromeos/dbus/fake_image_burner_client.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chromeos/dbus/fake_image_burner_client.h b/chromeos/dbus/fake_image_burner_client.h new file mode 100644 index 0000000..cb18bcf --- /dev/null +++ b/chromeos/dbus/fake_image_burner_client.h @@ -0,0 +1,35 @@ +// Copyright (c) 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ +#define CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ + +#include <string> + +#include "chromeos/dbus/image_burner_client.h" + +namespace chromeos { + +// A fake implemetation of ImageBurnerClient. This class does nothing. +class FakeImageBurnerClient : public ImageBurnerClient { + public: + FakeImageBurnerClient(); + virtual ~FakeImageBurnerClient(); + + // ImageBurnerClient overrides. + virtual void BurnImage(const std::string& from_path, + const std::string& to_path, + const ErrorCallback& error_callback) OVERRIDE; + virtual void SetEventHandlers( + const BurnFinishedHandler& burn_finished_handler, + const BurnProgressUpdateHandler& burn_progress_update_handler) OVERRIDE; + virtual void ResetEventHandlers() OVERRIDE; + + private: + DISALLOW_COPY_AND_ASSIGN(FakeImageBurnerClient); +}; + +} // namespace chromeos + +#endif // CHROMEOS_DBUS_FAKE_IMAGE_BURNER_CLIENT_H_ |