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 3 // found in the LICENSE file. 4 5 #ifndef CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 7 8 #include "base/basictypes.h" 9 #include "base/compiler_specific.h" 10 #include "chromeos/dbus/debug_daemon_client.h" 11 12 namespace chromeos { 13 14 // The DebugDaemonClient implementation used on Linux desktop, 15 // which does nothing. 16 class FakeDebugDaemonClient : public DebugDaemonClient { 17 public: 18 FakeDebugDaemonClient(); 19 virtual ~FakeDebugDaemonClient(); 20 21 virtual void Init(dbus::Bus* bus) OVERRIDE; 22 virtual void GetDebugLogs(base::File file, 23 const GetDebugLogsCallback& callback) OVERRIDE; 24 virtual void SetDebugMode(const std::string& subsystem, 25 const SetDebugModeCallback& callback) OVERRIDE; 26 virtual void StartSystemTracing() OVERRIDE; 27 virtual bool RequestStopSystemTracing( 28 const StopSystemTracingCallback& callback) OVERRIDE; 29 virtual void GetRoutes(bool numeric, 30 bool ipv6, 31 const GetRoutesCallback& callback) OVERRIDE; 32 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) 33 OVERRIDE; 34 virtual void GetModemStatus(const GetModemStatusCallback& callback) OVERRIDE; 35 virtual void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) OVERRIDE; 36 virtual void GetNetworkInterfaces( 37 const GetNetworkInterfacesCallback& callback) OVERRIDE; 38 virtual void GetPerfData(uint32_t duration, 39 const GetPerfDataCallback& callback) OVERRIDE; 40 virtual void GetScrubbedLogs(const GetLogsCallback& callback) OVERRIDE; 41 virtual void GetAllLogs(const GetLogsCallback& callback) OVERRIDE; 42 virtual void GetUserLogFiles(const GetLogsCallback& callback) OVERRIDE; 43 virtual void TestICMP(const std::string& ip_address, 44 const TestICMPCallback& callback) OVERRIDE; 45 virtual void TestICMPWithOptions( 46 const std::string& ip_address, 47 const std::map<std::string, std::string>& options, 48 const TestICMPCallback& callback) OVERRIDE; 49 virtual void UploadCrashes() OVERRIDE; 50 51 private: 52 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); 53 }; 54 55 } // namespace chromeos 56 57 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 58