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

Unified Diff: chromeos/dbus/fake_debug_daemon_client.cc

Issue 2618683003: Update debugd client. (Closed)
Patch Set: Change result code from bool to int32 at skaus request Created 3 years, 11 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.cc
diff --git a/chromeos/dbus/fake_debug_daemon_client.cc b/chromeos/dbus/fake_debug_daemon_client.cc
index a07b18e0cd9064393dd722e4561a2f97393cd938..20d749843b66de4fd2c0203c7d3ff96244f81214 100644
--- a/chromeos/dbus/fake_debug_daemon_client.cc
+++ b/chromeos/dbus/fake_debug_daemon_client.cc
@@ -223,13 +223,34 @@ void FakeDebugDaemonClient::CupsAddPrinter(
const std::string& uri,
const std::string& ppd_path,
bool ipp_everywhere,
- const DebugDaemonClient::CupsAddPrinterCallback& callback,
+ const DebugDaemonClient::LegacyCupsAddPrinterCallback& callback,
const base::Closure& error_callback) {
printers_.insert(name);
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
base::Bind(callback, true));
}
+void FakeDebugDaemonClient::CupsAddManuallyConfiguredPrinter(
+ const std::string& name,
+ const std::string& uri,
+ const std::string& ppd_contents,
+ const DebugDaemonClient::CupsAddPrinterCallback& callback,
+ const base::Closure& error_callback) {
+ printers_.insert(name);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::Bind(callback, 0));
+}
+
+void FakeDebugDaemonClient::CupsAddAutoConfiguredPrinter(
+ const std::string& name,
+ const std::string& uri,
+ const DebugDaemonClient::CupsAddPrinterCallback& callback,
+ const base::Closure& error_callback) {
+ printers_.insert(name);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::Bind(callback, 0));
+}
+
void FakeDebugDaemonClient::CupsRemovePrinter(
const std::string& name,
const DebugDaemonClient::CupsRemovePrinterCallback& callback,
« chromeos/dbus/debug_daemon_client.h ('K') | « chromeos/dbus/fake_debug_daemon_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698