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

Unified Diff: chromeos/dbus/image_burner_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/fake_system_clock_client.cc ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/image_burner_client.cc
diff --git a/chromeos/dbus/image_burner_client.cc b/chromeos/dbus/image_burner_client.cc
index ce31446bbe51ca002f3550c7d0a74791ac3266c5..86c4249a88ec80f8bd967508b3911c370236d44e 100644
--- a/chromeos/dbus/image_burner_client.cc
+++ b/chromeos/dbus/image_burner_client.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/compiler_specific.h"
+#include "chromeos/dbus/fake_image_burner_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
@@ -132,23 +133,6 @@ class ImageBurnerClientImpl : public ImageBurnerClient {
DISALLOW_COPY_AND_ASSIGN(ImageBurnerClientImpl);
};
-// A stub implementaion of ImageBurnerClient.
-class ImageBurnerClientStubImpl : public ImageBurnerClient {
- public:
- ImageBurnerClientStubImpl() {}
- virtual ~ImageBurnerClientStubImpl() {}
- 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(ImageBurnerClientStubImpl);
-};
-
} // namespace
ImageBurnerClient::ImageBurnerClient() {
@@ -163,7 +147,7 @@ ImageBurnerClient* ImageBurnerClient::Create(DBusClientImplementationType type,
if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
return new ImageBurnerClientImpl(bus);
DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new ImageBurnerClientStubImpl();
+ return new FakeImageBurnerClient();
}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/fake_system_clock_client.cc ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698