OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "fake_debug_daemon_client.h" | 5 #include "chromeos/dbus/fake_debug_daemon_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 FakeDebugDaemonClient::FakeDebugDaemonClient() {} | 18 FakeDebugDaemonClient::FakeDebugDaemonClient() {} |
19 | 19 |
20 FakeDebugDaemonClient::~FakeDebugDaemonClient() {} | 20 FakeDebugDaemonClient::~FakeDebugDaemonClient() {} |
21 | 21 |
22 void FakeDebugDaemonClient::Init(dbus::Bus* bus) {} | 22 void FakeDebugDaemonClient::Init(dbus::Bus* bus) {} |
23 | 23 |
24 void FakeDebugDaemonClient::GetDebugLogs(base::File file, | 24 void FakeDebugDaemonClient::DumpDebugLogs( |
25 const GetDebugLogsCallback& callback) { | 25 bool is_compressed, |
| 26 base::File file, |
| 27 const GetDebugLogsCallback& callback) { |
26 callback.Run(false); | 28 callback.Run(false); |
27 } | 29 } |
28 | 30 |
29 void FakeDebugDaemonClient::SetDebugMode(const std::string& subsystem, | 31 void FakeDebugDaemonClient::SetDebugMode(const std::string& subsystem, |
30 const SetDebugModeCallback& callback) { | 32 const SetDebugModeCallback& callback) { |
31 callback.Run(false); | 33 callback.Run(false); |
32 } | 34 } |
33 void FakeDebugDaemonClient::StartSystemTracing() {} | 35 void FakeDebugDaemonClient::StartSystemTracing() {} |
34 | 36 |
35 bool FakeDebugDaemonClient::RequestStopSystemTracing( | 37 bool FakeDebugDaemonClient::RequestStopSystemTracing( |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 const std::map<std::string, std::string>& options, | 112 const std::map<std::string, std::string>& options, |
111 const TestICMPCallback& callback) { | 113 const TestICMPCallback& callback) { |
112 base::MessageLoop::current()->PostTask(FROM_HERE, | 114 base::MessageLoop::current()->PostTask(FROM_HERE, |
113 base::Bind(callback, false, "")); | 115 base::Bind(callback, false, "")); |
114 } | 116 } |
115 | 117 |
116 void FakeDebugDaemonClient::UploadCrashes() { | 118 void FakeDebugDaemonClient::UploadCrashes() { |
117 } | 119 } |
118 | 120 |
119 } // namespace chromeos | 121 } // namespace chromeos |
OLD | NEW |