summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_debug_daemon_client.h
blob: 74d933f720fb9df260a54c7ce1e7e95b249b5696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
#define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chromeos/dbus/debug_daemon_client.h"

namespace chromeos {

// The DebugDaemonClient implementation used on Linux desktop,
// which does nothing.
class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient {
 public:
  FakeDebugDaemonClient();
  virtual ~FakeDebugDaemonClient();

  virtual void Init(dbus::Bus* bus) OVERRIDE;
  virtual void DumpDebugLogs(bool is_compressed,
                             base::File file,
                             const GetDebugLogsCallback& callback) OVERRIDE;
  virtual void SetDebugMode(const std::string& subsystem,
                            const SetDebugModeCallback& callback) OVERRIDE;
  virtual void StartSystemTracing() OVERRIDE;
  virtual bool RequestStopSystemTracing(
      const StopSystemTracingCallback& callback) OVERRIDE;
  virtual void GetRoutes(bool numeric,
                         bool ipv6,
                         const GetRoutesCallback& callback) OVERRIDE;
  virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback)
      OVERRIDE;
  virtual void GetModemStatus(const GetModemStatusCallback& callback) OVERRIDE;
  virtual void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) OVERRIDE;
  virtual void GetNetworkInterfaces(
      const GetNetworkInterfacesCallback& callback) OVERRIDE;
  virtual void GetPerfData(uint32_t duration,
                           const GetPerfDataCallback& callback) OVERRIDE;
  virtual void GetScrubbedLogs(const GetLogsCallback& callback) OVERRIDE;
  virtual void GetAllLogs(const GetLogsCallback& callback) OVERRIDE;
  virtual void GetUserLogFiles(const GetLogsCallback& callback) OVERRIDE;
  virtual void TestICMP(const std::string& ip_address,
                        const TestICMPCallback& callback) OVERRIDE;
  virtual void TestICMPWithOptions(
      const std::string& ip_address,
      const std::map<std::string, std::string>& options,
      const TestICMPCallback& callback) OVERRIDE;
  virtual void UploadCrashes() OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
};

}  // namespace chromeos

#endif  // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_