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

Side by Side Diff: chromeos/dbus/fake_arc_trace_agent.h

Issue 2400163003: arc: enable Android tracing in verified-boot mode (Closed)
Patch Set: add FakeArcTraceAgent for linux and test Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_DBUS_FAKE_ARC_TRACE_AGENT_H_
6 #define CHROMEOS_DBUS_FAKE_ARC_TRACE_AGENT_H_
7
8 #include <string>
9
10 #include "chromeos/dbus/arc_trace_agent.h"
11
12 namespace chromeos {
13
14 // A wrapper for controlling system tracing on Chrome OS.
15 class CHROMEOS_EXPORT FakeArcTraceAgent : public ArcTraceAgent {
16 public:
17 FakeArcTraceAgent() {}
Luis Héctor Chávez 2016/12/28 17:21:58 nit: only declare the ctor and dtor here. Use = de
shunhsingou 2016/12/29 09:40:30 Done.
18 ~FakeArcTraceAgent() override = default;
19
20 void SetDelegate(Delegate* delegate) override;
Luis Héctor Chávez 2016/12/28 17:21:58 nit: // ArcTraceAgent overrides: (and no newline
shunhsingou 2016/12/29 09:40:30 Done.
21
22 void SetStopAgentTracingTaskRunner(
23 scoped_refptr<base::TaskRunner> task_runner) override;
24
25 // base::trace_event::TracingAgent overrides:
26 std::string GetTracingAgentName() override;
27 std::string GetTraceEventLabel() override;
28 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config,
29 const StartAgentTracingCallback& callback) override;
30 void StopAgentTracing(const StopAgentTracingCallback& callback) override;
31
32 // DBusClient overrides:
33 void Init(dbus::Bus* bus) override;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(FakeArcTraceAgent);
37 };
38
39 } // namespace chromeos
40
41 #endif // CHROMEOS_DBUS_FAKE_ARC_TRACE_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698