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 3 // found in the LICENSE file. 4 5 #ifndef CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_ 7 8 #include "base/basictypes.h" 9 #include "base/compiler_specific.h" 10 #include "chromeos/chromeos_export.h" 11 #include "chromeos/dbus/modem_messaging_client.h" 12 13 namespace chromeos { 14 15 class CHROMEOS_EXPORT FakeModemMessagingClient : public ModemMessagingClient { 16 public: 17 FakeModemMessagingClient(); 18 virtual ~FakeModemMessagingClient(); 19 20 virtual void Init(dbus::Bus* bus) OVERRIDE; 21 virtual void SetSmsReceivedHandler(const std::string& service_name, 22 const dbus::ObjectPath& object_path, 23 const SmsReceivedHandler& handler) 24 OVERRIDE; 25 virtual void ResetSmsReceivedHandler(const std::string& service_name, 26 const dbus::ObjectPath& object_path) 27 OVERRIDE; 28 virtual void Delete(const std::string& service_name, 29 const dbus::ObjectPath& object_path, 30 const dbus::ObjectPath& sms_path, 31 const DeleteCallback& callback) OVERRIDE; 32 virtual void List(const std::string& service_name, 33 const dbus::ObjectPath& object_path, 34 const ListCallback& callback) OVERRIDE; 35 36 private: 37 SmsReceivedHandler sms_received_handler_; 38 std::vector<dbus::ObjectPath> message_paths_; 39 40 DISALLOW_COPY_AND_ASSIGN(FakeModemMessagingClient); 41 }; 42 43 } // namespace chromeos 44 45 #endif // CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_ 46