Always send enabled state in extension update checks
[chromium-blink-merge.git] / chromeos / dbus / fake_modem_messaging_client.h
blob73fe975c5a696c31e02f9da61919937be0797d81
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_