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

Unified Diff: chromeos/dbus/fake_upstart_client.cc

Issue 2673813003: Emulate StartAuthPolicyService from FakeUpstartClient (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « chromeos/dbus/fake_auth_policy_client_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_upstart_client.cc
diff --git a/chromeos/dbus/fake_upstart_client.cc b/chromeos/dbus/fake_upstart_client.cc
index 92e363b5c7278b4a0d85994202ff134671e49567..2980912ca45ed47c8c5b0ed6a62048405e651b2b 100644
--- a/chromeos/dbus/fake_upstart_client.cc
+++ b/chromeos/dbus/fake_upstart_client.cc
@@ -4,6 +4,9 @@
#include "chromeos/dbus/fake_upstart_client.h"
+#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/fake_auth_policy_client.h"
+
namespace chromeos {
FakeUpstartClient::FakeUpstartClient() {}
@@ -12,6 +15,10 @@ FakeUpstartClient::~FakeUpstartClient() {}
void FakeUpstartClient::Init(dbus::Bus* bus) {}
-void FakeUpstartClient::StartAuthPolicyService() {}
+void FakeUpstartClient::StartAuthPolicyService() {
+ static_cast<FakeAuthPolicyClient*>(
+ DBusThreadManager::Get()->GetAuthPolicyClient())
+ ->set_started(true);
+}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/fake_auth_policy_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698