Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1260)

Side by Side Diff: chromeos/dbus/fake_debug_daemon_client.h

Issue 2081153002: No dbus::FileDescriptor in DebugDaemonClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/debug_daemon_client.cc ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chromeos/dbus/debug_daemon_client.h" 14 #include "chromeos/dbus/debug_daemon_client.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // The DebugDaemonClient implementation used on Linux desktop, 18 // The DebugDaemonClient implementation used on Linux desktop,
19 // which does nothing. 19 // which does nothing.
20 class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient { 20 class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient {
21 public: 21 public:
22 FakeDebugDaemonClient(); 22 FakeDebugDaemonClient();
23 ~FakeDebugDaemonClient() override; 23 ~FakeDebugDaemonClient() override;
24 24
25 void Init(dbus::Bus* bus) override; 25 void Init(dbus::Bus* bus) override;
26 void DumpDebugLogs(bool is_compressed, 26 void DumpDebugLogs(bool is_compressed,
27 base::File file, 27 int file_descriptor,
28 scoped_refptr<base::TaskRunner> task_runner,
29 const GetDebugLogsCallback& callback) override; 28 const GetDebugLogsCallback& callback) override;
30 void SetDebugMode(const std::string& subsystem, 29 void SetDebugMode(const std::string& subsystem,
31 const SetDebugModeCallback& callback) override; 30 const SetDebugModeCallback& callback) override;
32 std::string GetTracingAgentName() override; 31 std::string GetTracingAgentName() override;
33 std::string GetTraceEventLabel() override; 32 std::string GetTraceEventLabel() override;
34 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config, 33 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config,
35 const StartAgentTracingCallback& callback) override; 34 const StartAgentTracingCallback& callback) override;
36 void StopAgentTracing(const StopAgentTracingCallback& callback) override; 35 void StopAgentTracing(const StopAgentTracingCallback& callback) override;
37 void SetStopAgentTracingTaskRunner( 36 void SetStopAgentTracingTaskRunner(
38 scoped_refptr<base::TaskRunner> task_runner) override; 37 scoped_refptr<base::TaskRunner> task_runner) override;
39 void GetRoutes(bool numeric, 38 void GetRoutes(bool numeric,
40 bool ipv6, 39 bool ipv6,
41 const GetRoutesCallback& callback) override; 40 const GetRoutesCallback& callback) override;
42 void GetNetworkStatus(const GetNetworkStatusCallback& callback) override; 41 void GetNetworkStatus(const GetNetworkStatusCallback& callback) override;
43 void GetModemStatus(const GetModemStatusCallback& callback) override; 42 void GetModemStatus(const GetModemStatusCallback& callback) override;
44 void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) override; 43 void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) override;
45 void GetNetworkInterfaces( 44 void GetNetworkInterfaces(
46 const GetNetworkInterfacesCallback& callback) override; 45 const GetNetworkInterfacesCallback& callback) override;
47 void GetPerfOutput(base::TimeDelta duration, 46 void GetPerfOutput(base::TimeDelta duration,
48 const std::vector<std::string>& perf_args, 47 const std::vector<std::string>& perf_args,
49 dbus::ScopedFileDescriptor file_descriptor, 48 int file_descriptor,
50 const DBusMethodErrorCallback& error_callback) override; 49 const DBusMethodErrorCallback& error_callback) override;
51 void GetScrubbedLogs(const GetLogsCallback& callback) override; 50 void GetScrubbedLogs(const GetLogsCallback& callback) override;
52 void GetScrubbedBigLogs(const GetLogsCallback& callback) override; 51 void GetScrubbedBigLogs(const GetLogsCallback& callback) override;
53 void GetAllLogs(const GetLogsCallback& callback) override; 52 void GetAllLogs(const GetLogsCallback& callback) override;
54 void GetUserLogFiles(const GetLogsCallback& callback) override; 53 void GetUserLogFiles(const GetLogsCallback& callback) override;
55 void TestICMP(const std::string& ip_address, 54 void TestICMP(const std::string& ip_address,
56 const TestICMPCallback& callback) override; 55 const TestICMPCallback& callback) override;
57 void TestICMPWithOptions(const std::string& ip_address, 56 void TestICMPWithOptions(const std::string& ip_address,
58 const std::map<std::string, std::string>& options, 57 const std::map<std::string, std::string>& options,
59 const TestICMPCallback& callback) override; 58 const TestICMPCallback& callback) override;
(...skipping 21 matching lines...) Expand all
81 bool service_is_available_; 80 bool service_is_available_;
82 std::vector<WaitForServiceToBeAvailableCallback> 81 std::vector<WaitForServiceToBeAvailableCallback>
83 pending_wait_for_service_to_be_available_callbacks_; 82 pending_wait_for_service_to_be_available_callbacks_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); 84 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
86 }; 85 };
87 86
88 } // namespace chromeos 87 } // namespace chromeos
89 88
90 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 89 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/debug_daemon_client.cc ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698