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

Unified Diff: chromeos/dbus/fake_upstart_client.h

Issue 2858353002: MediaPerceptionPrivate API impl and testing. (Closed)
Patch Set: Addressed comments. Created 3 years, 7 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/fake_upstart_client.h
diff --git a/chromeos/dbus/fake_upstart_client.h b/chromeos/dbus/fake_upstart_client.h
index efcb5e6a6c1344b3e19a417dd0bd3e667b7c182e..64bad371211694dc0ae5bf6b232ee26e9a288e1b 100644
--- a/chromeos/dbus/fake_upstart_client.h
+++ b/chromeos/dbus/fake_upstart_client.h
@@ -25,7 +25,16 @@ class CHROMEOS_EXPORT FakeUpstartClient : public UpstartClient {
void StartMediaAnalytics(const UpstartCallback& callback) override;
void StopMediaAnalytics() override;
+ void SetStartMediaAnalyticsWillSucceed(bool will_succeed);
+ void SetStartMediaAnalyticsWillStall(bool will_stall);
+
private:
+ // Sets whether the StartMediaAnalytics method will succeed.
+ bool start_media_analytics_will_succeed_;
tbarzic 2017/05/18 19:28:01 So, I'd do this differently (my main concern is th
Luke Sorenson 2017/05/18 21:24:16 Done.
+
+ // Sets whether the StartMediaAnalytics method will stall.
+ bool start_media_analytics_will_stall_;
+
DISALLOW_COPY_AND_ASSIGN(FakeUpstartClient);
};

Powered by Google App Engine
This is Rietveld 408576698