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

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 has_ms_after_login() instead of ms_after_login() value Created 5 years, 5 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_debug_daemon_client.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e7f6ba418e8b34eed8a6bf6f4e674ce4bbd9d786..8b2124d0a0dd8bdd5430ff29f9488e63601b51e2 100644
--- a/chromeos/dbus/fake_debug_daemon_client.cc
+++ b/chromeos/dbus/fake_debug_daemon_client.cc
@@ -87,6 +87,16 @@ void FakeDebugDaemonClient::GetPerfData(uint32_t duration,
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::ThreadTaskRunnerHandle::Get()->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";
« no previous file with comments | « chromeos/dbus/fake_debug_daemon_client.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698