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 CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient { | 16 class CHROMEOS_EXPORT 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 DumpDebugLogs(bool is_compressed, | 22 virtual void DumpDebugLogs(bool is_compressed, |
23 base::File file, | 23 base::File file, |
24 scoped_refptr<base::TaskRunner> task_runner, | 24 scoped_refptr<base::TaskRunner> task_runner, |
25 const GetDebugLogsCallback& callback) OVERRIDE; | 25 const GetDebugLogsCallback& callback) override; |
26 virtual void SetDebugMode(const std::string& subsystem, | 26 virtual void SetDebugMode(const std::string& subsystem, |
27 const SetDebugModeCallback& callback) OVERRIDE; | 27 const SetDebugModeCallback& callback) override; |
28 virtual void StartSystemTracing() OVERRIDE; | 28 virtual void StartSystemTracing() override; |
29 virtual bool RequestStopSystemTracing( | 29 virtual bool RequestStopSystemTracing( |
30 scoped_refptr<base::TaskRunner> task_runner, | 30 scoped_refptr<base::TaskRunner> task_runner, |
31 const StopSystemTracingCallback& callback) OVERRIDE; | 31 const StopSystemTracingCallback& callback) override; |
32 virtual void GetRoutes(bool numeric, | 32 virtual void GetRoutes(bool numeric, |
33 bool ipv6, | 33 bool ipv6, |
34 const GetRoutesCallback& callback) OVERRIDE; | 34 const GetRoutesCallback& callback) override; |
35 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) | 35 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) |
36 OVERRIDE; | 36 override; |
37 virtual void GetModemStatus(const GetModemStatusCallback& callback) OVERRIDE; | 37 virtual void GetModemStatus(const GetModemStatusCallback& callback) override; |
38 virtual void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) OVERRIDE; | 38 virtual void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) override; |
39 virtual void GetNetworkInterfaces( | 39 virtual void GetNetworkInterfaces( |
40 const GetNetworkInterfacesCallback& callback) OVERRIDE; | 40 const GetNetworkInterfacesCallback& callback) override; |
41 virtual void GetPerfData(uint32_t duration, | 41 virtual void GetPerfData(uint32_t duration, |
42 const GetPerfDataCallback& callback) OVERRIDE; | 42 const GetPerfDataCallback& callback) override; |
43 virtual void GetScrubbedLogs(const GetLogsCallback& callback) OVERRIDE; | 43 virtual void GetScrubbedLogs(const GetLogsCallback& callback) override; |
44 virtual void GetAllLogs(const GetLogsCallback& callback) OVERRIDE; | 44 virtual void GetAllLogs(const GetLogsCallback& callback) override; |
45 virtual void GetUserLogFiles(const GetLogsCallback& callback) OVERRIDE; | 45 virtual void GetUserLogFiles(const GetLogsCallback& callback) override; |
46 virtual void TestICMP(const std::string& ip_address, | 46 virtual void TestICMP(const std::string& ip_address, |
47 const TestICMPCallback& callback) OVERRIDE; | 47 const TestICMPCallback& callback) override; |
48 virtual void TestICMPWithOptions( | 48 virtual void TestICMPWithOptions( |
49 const std::string& ip_address, | 49 const std::string& ip_address, |
50 const std::map<std::string, std::string>& options, | 50 const std::map<std::string, std::string>& options, |
51 const TestICMPCallback& callback) OVERRIDE; | 51 const TestICMPCallback& callback) override; |
52 virtual void UploadCrashes() OVERRIDE; | 52 virtual void UploadCrashes() override; |
53 | 53 |
54 private: | 54 private: |
55 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); | 55 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace chromeos | 58 } // namespace chromeos |
59 | 59 |
60 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ | 60 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ |
OLD | NEW |