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

Unified Diff: chromeos/dbus/fake_debug_daemon_client.h

Issue 2232203003: Implement a dbus client for CupsTool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert client bundle Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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
index c475b972d27b2e21555f1a7c6fd9824c65282768..c08e64969f65b7256a5d22c990e58425b2603b4c 100644
--- a/chromeos/dbus/fake_debug_daemon_client.h
+++ b/chromeos/dbus/fake_debug_daemon_client.h
@@ -9,6 +9,7 @@
#include <sys/types.h>
#include <map>
+#include <set>
#include <string>
#include <vector>
@@ -71,6 +72,15 @@ class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient {
const WaitForServiceToBeAvailableCallback& callback) override;
void SetOomScoreAdj(const std::map<pid_t, int32_t>& pid_to_oom_score_adj,
const SetOomScoreAdjCallback& callback) override;
+ void CupsAddPrinter(const std::string& name,
+ const std::string& uri,
+ const std::string& ppd_path,
+ bool ipp_everywhere,
+ const AddPrinterCallback& callback,
+ const base::Closure& error_callback) override;
+ void CupsRemovePrinter(const std::string& name,
+ const RemovePrinterCallback& callback,
+ const base::Closure& error_callback) override;
// Sets debugging features mask for testing.
virtual void SetDebuggingFeaturesStatus(int featues_mask);
@@ -85,6 +95,7 @@ class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient {
bool service_is_available_;
std::vector<WaitForServiceToBeAvailableCallback>
pending_wait_for_service_to_be_available_callbacks_;
+ std::set<std::string> printers_;
DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
};

Powered by Google App Engine
This is Rietveld 408576698