Remove ExtensionPrefs::SetDidExtensionEscalatePermissions.
[chromium-blink-merge.git] / chromeos / dbus / fake_modem_messaging_client.h
blob8cfb17b3cb7b85970b35eec19e5e8195032d2ca9
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 ~FakeModemMessagingClient() override;
20 void Init(dbus::Bus* bus) override;
21 void SetSmsReceivedHandler(const std::string& service_name,
22 const dbus::ObjectPath& object_path,
23 const SmsReceivedHandler& handler) override;
24 void ResetSmsReceivedHandler(const std::string& service_name,
25 const dbus::ObjectPath& object_path) override;
26 void Delete(const std::string& service_name,
27 const dbus::ObjectPath& object_path,
28 const dbus::ObjectPath& sms_path,
29 const DeleteCallback& callback) override;
30 void List(const std::string& service_name,
31 const dbus::ObjectPath& object_path,
32 const ListCallback& callback) override;
34 private:
35 SmsReceivedHandler sms_received_handler_;
36 std::vector<dbus::ObjectPath> message_paths_;
38 DISALLOW_COPY_AND_ASSIGN(FakeModemMessagingClient);
41 } // namespace chromeos
43 #endif // CHROMEOS_DBUS_FAKE_MODEM_MESSAGING_CLIENT_H_