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/system_clock_client.cc | |
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/system_clock_client.cc')
-rw-r--r-- | chromeos/dbus/system_clock_client.cc | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/chromeos/dbus/system_clock_client.cc b/chromeos/dbus/system_clock_client.cc index a9daa2f..b9a094e 100644 --- a/chromeos/dbus/system_clock_client.cc +++ b/chromeos/dbus/system_clock_client.cc @@ -5,6 +5,7 @@ #include "chromeos/dbus/system_clock_client.h" #include "base/bind.h" +#include "chromeos/dbus/fake_system_clock_client.h" #include "dbus/bus.h" #include "dbus/message.h" #include "dbus/object_path.h" @@ -75,22 +76,6 @@ class SystemClockClientImpl : public SystemClockClient { DISALLOW_COPY_AND_ASSIGN(SystemClockClientImpl); }; -// The SystemClockClient implementation used on Linux desktop, -// which does nothing. -class SystemClockClientStubImpl : public SystemClockClient { - public: - SystemClockClientStubImpl() {} - ~SystemClockClientStubImpl() {} - - // SystemClockClient overrides: - virtual void AddObserver(Observer* observer) OVERRIDE {} - virtual void RemoveObserver(Observer* observer) OVERRIDE {} - virtual bool HasObserver(Observer* observer) OVERRIDE { return false; } - - private: - DISALLOW_COPY_AND_ASSIGN(SystemClockClientStubImpl); -}; - SystemClockClient::SystemClockClient() { } @@ -105,7 +90,7 @@ SystemClockClient* SystemClockClient::Create( return new SystemClockClientImpl(bus); } DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); - return new SystemClockClientStubImpl(); + return new FakeSystemClockClient(); } } // namespace chromeos |