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

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: 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..cad4b8814e85e9a19dc428a349b130c51df268a1 100644
--- a/chromeos/dbus/fake_debug_daemon_client.cc
+++ b/chromeos/dbus/fake_debug_daemon_client.cc
@@ -38,16 +38,38 @@ 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 FakeDebugDaemonClient::GetTracingAgentName() {
+ return kCrOSTracingAgentName;
+}
+
+bool FakeDebugDaemonClient::StartAgentTracing(
+ const base::trace_event::TraceConfig& trace_config) {
+ return true;
+}
+
+void FakeDebugDaemonClient::StopAgentTracing(
+ const StopAgentTracingCallback& callback) {
std::string no_data;
callback.Run(base::RefCountedString::TakeString(&no_data));
- return true;
}
+bool FakeDebugDaemonClient::SupportsExplicitClockSync() {
+ return false;
+}
+
+void FakeDebugDaemonClient::RecordClockSyncMarker(
+ scoped_ptr<base::DictionaryValue> marker) {
+ DCHECK(SupportsExplicitClockSync());
+}
+
+void FakeDebugDaemonClient::IssueClockSyncMarker() {
oystein (OOO til 10th of July) 2015/11/24 22:52:10 The pattern of these three above functions seem to
Zhen Wang 2015/11/25 04:24:55 Done.
+ DCHECK(SupportsExplicitClockSync());
+}
+
+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