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

Unified Diff: chromeos/dbus/dbus_thread_manager.h

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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
Index: chromeos/dbus/dbus_thread_manager.h
diff --git a/chromeos/dbus/dbus_thread_manager.h b/chromeos/dbus/dbus_thread_manager.h
index c36ddc3dfe87cc28470a83afd4b3cd2561cb852f..61d3978548980a89a5fbc6a767bb6e355800f8a7 100644
--- a/chromeos/dbus/dbus_thread_manager.h
+++ b/chromeos/dbus/dbus_thread_manager.h
@@ -150,6 +150,12 @@ class CHROMEOS_EXPORT DBusThreadManager {
virtual SystemClockClient* GetSystemClockClient() = 0;
virtual UpdateEngineClient* GetUpdateEngineClient() = 0;
+ // These methods can be overridden by Fake or Test implementations to provide
+ // initial behavior overrides (e.g. based on command line flags).
+ virtual int GetPowerCycleDelay() const;
+ virtual int GetShillInteractiveDelay() const;
pneubeck (no reviews) 2014/02/27 09:04:37 not sure about GetPowerCycleDelay, but the GetShil
stevenjb 2014/02/28 02:44:06 I'm not super thrilled about passing FakeDBusThrea
+ virtual std::string GetShillInitialState(const std::string& type) const;
+
virtual ~DBusThreadManager();
protected:

Powered by Google App Engine
This is Rietveld 408576698