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

Unified Diff: chromeos/dbus/fake_debug_daemon_client.cc

Issue 1218583002: metrics: Add dbus interface for GetRandomPerfOutput (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check that the dbus method returns some data Created 5 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 d59ca93dccd4144e808a8c9a79c9aba3fc553949..4ef3d79c5e1e578865be8b94e21f2514daf47b12 100644
--- a/chromeos/dbus/fake_debug_daemon_client.cc
+++ b/chromeos/dbus/fake_debug_daemon_client.cc
@@ -85,6 +85,16 @@ void FakeDebugDaemonClient::GetPerfData(uint32_t duration,
base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, data));
}
+void FakeDebugDaemonClient::GetPerfOutput(
+ uint32_t duration,
+ const GetPerfOutputCallback& callback) {
+ int status = 0;
+ std::vector<uint8> perf_data;
+ std::vector<uint8> perf_stat;
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(callback, status, perf_data, perf_stat));
+}
+
void FakeDebugDaemonClient::GetScrubbedLogs(const GetLogsCallback& callback) {
std::map<std::string, std::string> sample;
sample["Sample Scrubbed Log"] = "Your email address is xxxxxxxx";
« chrome/browser/metrics/perf_provider_chromeos.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