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

Unified Diff: chromeos/dbus/fake_debug_daemon_client.cc

Issue 1468173003: [Tracing Clock Sync] Add TracingAgent interface in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 5 years, 1 month 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 8dd391cdbb9d549a81a4ee2f29b5a01a9a8763d9..8594d4358cef0a1e3999926d70e1dbabf3fe89e8 100644
--- a/chromeos/dbus/fake_debug_daemon_client.cc
+++ b/chromeos/dbus/fake_debug_daemon_client.cc
@@ -38,16 +38,30 @@ void FakeDebugDaemonClient::SetDebugMode(const std::string& subsystem,
const SetDebugModeCallback& callback) {
callback.Run(false);
}
-void FakeDebugDaemonClient::StartSystemTracing() {}
-bool FakeDebugDaemonClient::RequestStopSystemTracing(
- scoped_refptr<base::TaskRunner> task_runner,
- const StopSystemTracingCallback& callback) {
- std::string no_data;
- callback.Run(base::RefCountedString::TakeString(&no_data));
+std::string FakeDebugDaemonClient::GetTracingAgentName() {
+ return kCrOSTracingAgentName;
+}
+
+std::string FakeDebugDaemonClient::GetTraceEventLabel() {
+ return kSystemTraceLabel;
+}
+
+bool FakeDebugDaemonClient::StartAgentTracing(
+ const base::trace_event::TraceConfig& trace_config) {
return true;
}
+void FakeDebugDaemonClient::StopAgentTracing(
+ const StopAgentTracingCallback& callback) {
+ std::string no_data;
+ callback.Run(GetTracingAgentName(), GetTraceEventLabel(),
+ base::RefCountedString::TakeString(&no_data));
+}
+
+void FakeDebugDaemonClient::SetStopAgentTracingTaskRunner(
+ scoped_refptr<base::TaskRunner> task_runner) {}
+
void FakeDebugDaemonClient::GetRoutes(bool numeric,
bool ipv6,
const GetRoutesCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698