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

Unified Diff: chromeos/dbus/fake_debug_daemon_client.cc

Issue 2944403002: Add GetLog method call to DebugDaemonClient (Closed)
Patch Set: Return success=true in FakeDebugDaemonClient::GetLog() Created 3 years, 6 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_debug_daemon_client.cc
diff --git a/chromeos/dbus/fake_debug_daemon_client.cc b/chromeos/dbus/fake_debug_daemon_client.cc
index e5feb38f4a8e350e502efce240ac85cccf3fbba4..52a77e4de8f716a71038d6f3c08bb1055683183a 100644
--- a/chromeos/dbus/fake_debug_daemon_client.cc
+++ b/chromeos/dbus/fake_debug_daemon_client.cc
@@ -143,6 +143,14 @@ void FakeDebugDaemonClient::GetUserLogFiles(const GetLogsCallback& callback) {
FROM_HERE, base::Bind(callback, true, user_logs));
}
+void FakeDebugDaemonClient::GetLog(const std::string& log_name,
+ const GetLogsCallback& callback) {
+ std::map<std::string, std::string> sample;
+ sample[log_name] = "Response from individual log";
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, true, sample));
+}
+
void FakeDebugDaemonClient::TestICMP(const std::string& ip_address,
const TestICMPCallback& callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
« chromeos/dbus/debug_daemon_client.cc ('K') | « chromeos/dbus/fake_debug_daemon_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698