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

Unified Diff: chromeos/dbus/fake_debug_daemon_client.h

Issue 91373004: Move DBusClient stub implementations into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.cc ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_debug_daemon_client.h
diff --git a/chromeos/dbus/fake_debug_daemon_client.h b/chromeos/dbus/fake_debug_daemon_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..56c208cae027d4c0e1bdb2eb7e0f81d8728044eb
--- /dev/null
+++ b/chromeos/dbus/fake_debug_daemon_client.h
@@ -0,0 +1,56 @@
+// 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 FakeDebugDaemonClient : public DebugDaemonClient {
+ public:
+ FakeDebugDaemonClient();
+ virtual ~FakeDebugDaemonClient();
+
+ virtual void Init(dbus::Bus* bus) OVERRIDE;
+ virtual void GetDebugLogs(base::PlatformFile 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;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.cc ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698