Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: chromeos/dbus/system_clock_client.cc

Issue 13890017: dbus:Add FakeImageBurnerClient FakeSystemClockClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/system_clock_client.cc
diff --git a/chromeos/dbus/system_clock_client.cc b/chromeos/dbus/system_clock_client.cc
index a9daa2fe9b8196abb5a700ea5a95384728ec80ee..b9a094e7d6aa7f856303944dbb5b6ecd41a1ed65 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
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698