| 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 #ifndef CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chromeos/dbus/debug_daemon_client.h" | 10 #include "chromeos/dbus/debug_daemon_client.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 // The DebugDaemonClient implementation used on Linux desktop, | 14 // The DebugDaemonClient implementation used on Linux desktop, |
| 15 // which does nothing. | 15 // which does nothing. |
| 16 class FakeDebugDaemonClient : public DebugDaemonClient { | 16 class FakeDebugDaemonClient : public DebugDaemonClient { |
| 17 public: | 17 public: |
| 18 FakeDebugDaemonClient(); | 18 FakeDebugDaemonClient(); |
| 19 virtual ~FakeDebugDaemonClient(); | 19 virtual ~FakeDebugDaemonClient(); |
| 20 | 20 |
| 21 virtual void Init(dbus::Bus* bus) OVERRIDE; | 21 virtual void Init(dbus::Bus* bus) OVERRIDE; |
| 22 virtual void GetDebugLogs(base::PlatformFile file, | 22 virtual void GetDebugLogs(base::File file, |
| 23 const GetDebugLogsCallback& callback) OVERRIDE; | 23 const GetDebugLogsCallback& callback) OVERRIDE; |
| 24 virtual void SetDebugMode(const std::string& subsystem, | 24 virtual void SetDebugMode(const std::string& subsystem, |
| 25 const SetDebugModeCallback& callback) OVERRIDE; | 25 const SetDebugModeCallback& callback) OVERRIDE; |
| 26 virtual void StartSystemTracing() OVERRIDE; | 26 virtual void StartSystemTracing() OVERRIDE; |
| 27 virtual bool RequestStopSystemTracing( | 27 virtual bool RequestStopSystemTracing( |
| 28 const StopSystemTracingCallback& callback) OVERRIDE; | 28 const StopSystemTracingCallback& callback) OVERRIDE; |
| 29 virtual void GetRoutes(bool numeric, | 29 virtual void GetRoutes(bool numeric, |
| 30 bool ipv6, | 30 bool ipv6, |
| 31 const GetRoutesCallback& callback) OVERRIDE; | 31 const GetRoutesCallback& callback) OVERRIDE; |
| 32 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) | 32 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 48 const TestICMPCallback& callback) OVERRIDE; | 48 const TestICMPCallback& callback) OVERRIDE; |
| 49 virtual void UploadCrashes() OVERRIDE; | 49 virtual void UploadCrashes() OVERRIDE; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); | 52 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace chromeos | 55 } // namespace chromeos |
| 56 | 56 |
| 57 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ | 57 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ |
| OLD | NEW |