Add a comment to the Browser Blacklist List
[chromium-blink-merge.git] / chromeos / dbus / fake_modem_messaging_client.h
blob16dc4bfa0af6bd651306b1577bcac1647dd35f55
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.
5 #ifndef CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_
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"
13 namespace chromeos {
15 class CHROMEOS_EXPORT FakeModemMessagingClient : public ModemMessagingClient {
16 public:
17 FakeModemMessagingClient();
18 virtual ~FakeModemMessagingClient();
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;
36 private:
37 SmsReceivedHandler sms_received_handler_;
38 std::vector<dbus::ObjectPath> message_paths_;
40 DISALLOW_COPY_AND_ASSIGN(FakeModemMessagingClient);
43 } // namespace chromeos
45 #endif // CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_