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

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: finish addressing comments 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
« 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 »
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
index c475b972d27b2e21555f1a7c6fd9824c65282768..d008880ce4e74dccc6a772d4a0200457efbd8921 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 CupsAddPrinterCallback& callback,
+ const base::Closure& error_callback) override;
+ void CupsRemovePrinter(const std::string& name,
+ const CupsRemovePrinterCallback& 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);
};
« 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