| OLD | NEW |
| 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 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void RemoveRootfsVerification( | 69 void RemoveRootfsVerification( |
| 70 const EnableDebuggingCallback& callback) override; | 70 const EnableDebuggingCallback& callback) override; |
| 71 void WaitForServiceToBeAvailable( | 71 void WaitForServiceToBeAvailable( |
| 72 const WaitForServiceToBeAvailableCallback& callback) override; | 72 const WaitForServiceToBeAvailableCallback& callback) override; |
| 73 void SetOomScoreAdj(const std::map<pid_t, int32_t>& pid_to_oom_score_adj, | 73 void SetOomScoreAdj(const std::map<pid_t, int32_t>& pid_to_oom_score_adj, |
| 74 const SetOomScoreAdjCallback& callback) override; | 74 const SetOomScoreAdjCallback& callback) override; |
| 75 void CupsAddPrinter(const std::string& name, | 75 void CupsAddPrinter(const std::string& name, |
| 76 const std::string& uri, | 76 const std::string& uri, |
| 77 const std::string& ppd_path, | 77 const std::string& ppd_path, |
| 78 bool ipp_everywhere, | 78 bool ipp_everywhere, |
| 79 const CupsAddPrinterCallback& callback, | 79 const LegacyCupsAddPrinterCallback& callback, |
| 80 const base::Closure& error_callback) override; | 80 const base::Closure& error_callback) override; |
| 81 void CupsAddManuallyConfiguredPrinter( |
| 82 const std::string& name, |
| 83 const std::string& uri, |
| 84 const std::string& ppd_contents, |
| 85 const CupsAddPrinterCallback& callback, |
| 86 const base::Closure& error_callback) override; |
| 87 void CupsAddAutoConfiguredPrinter( |
| 88 const std::string& name, |
| 89 const std::string& uri, |
| 90 const CupsAddPrinterCallback& callback, |
| 91 const base::Closure& error_callback) override; |
| 81 void CupsRemovePrinter(const std::string& name, | 92 void CupsRemovePrinter(const std::string& name, |
| 82 const CupsRemovePrinterCallback& callback, | 93 const CupsRemovePrinterCallback& callback, |
| 83 const base::Closure& error_callback) override; | 94 const base::Closure& error_callback) override; |
| 84 | 95 |
| 85 // Sets debugging features mask for testing. | 96 // Sets debugging features mask for testing. |
| 86 virtual void SetDebuggingFeaturesStatus(int featues_mask); | 97 virtual void SetDebuggingFeaturesStatus(int featues_mask); |
| 87 | 98 |
| 88 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs | 99 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs |
| 89 // pending callbacks if is_available is true. | 100 // pending callbacks if is_available is true. |
| 90 void SetServiceIsAvailable(bool is_available); | 101 void SetServiceIsAvailable(bool is_available); |
| 91 | 102 |
| 92 private: | 103 private: |
| 93 int featues_mask_; | 104 int featues_mask_; |
| 94 | 105 |
| 95 bool service_is_available_; | 106 bool service_is_available_; |
| 96 std::vector<WaitForServiceToBeAvailableCallback> | 107 std::vector<WaitForServiceToBeAvailableCallback> |
| 97 pending_wait_for_service_to_be_available_callbacks_; | 108 pending_wait_for_service_to_be_available_callbacks_; |
| 98 std::set<std::string> printers_; | 109 std::set<std::string> printers_; |
| 99 | 110 |
| 100 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); | 111 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); |
| 101 }; | 112 }; |
| 102 | 113 |
| 103 } // namespace chromeos | 114 } // namespace chromeos |
| 104 | 115 |
| 105 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ | 116 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ |
| OLD | NEW |