bluetooth: Shutdown BluetoothAdapter before DBus on ChromeOS.
[chromium-blink-merge.git] / chromeos / dbus / fake_sms_client.h
blobc682e2bbaf1f57b1d7cb53c3c79bee9862ad8579
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_SMS_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SMS_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h"
11 #include "chromeos/dbus/sms_client.h"
13 namespace chromeos {
15 class FakeSMSClient : public SMSClient {
16 public:
17 FakeSMSClient();
18 ~FakeSMSClient() override;
20 void Init(dbus::Bus* bus) override;
22 void GetAll(const std::string& service_name,
23 const dbus::ObjectPath& object_path,
24 const GetAllCallback& callback) override;
26 private:
27 void OnGetAll(base::DictionaryValue* sms, const GetAllCallback& callback);
29 base::WeakPtrFactory<FakeSMSClient> weak_ptr_factory_;
31 DISALLOW_COPY_AND_ASSIGN(FakeSMSClient);
34 } // namespace chromeos
36 #endif // CHROMEOS_DBUS_FAKE_SMS_CLIENT_H_