| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" |
| 11 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 12 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/nfc_manager_client.h" | 14 #include "chromeos/dbus/nfc_manager_client.h" |
| 14 #include "dbus/property.h" | 15 #include "dbus/property.h" |
| 15 | 16 |
| 16 namespace chromeos { | 17 namespace chromeos { |
| 17 | 18 |
| 18 // FakeNfcManagerClient simulates the behavior of the NFC Daemon manager object | 19 // FakeNfcManagerClient simulates the behavior of the NFC Daemon manager object |
| 19 // and is used both in test cases in place of a mock and on the Linux desktop. | 20 // and is used both in test cases in place of a mock and on the Linux desktop. |
| 20 class CHROMEOS_EXPORT FakeNfcManagerClient : public NfcManagerClient { | 21 class CHROMEOS_EXPORT FakeNfcManagerClient : public NfcManagerClient { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Fake properties object. This gets updated whenever AddAdapter or | 61 // Fake properties object. This gets updated whenever AddAdapter or |
| 61 // RemoveAdapter gets called. | 62 // RemoveAdapter gets called. |
| 62 scoped_ptr<Properties> properties_; | 63 scoped_ptr<Properties> properties_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(FakeNfcManagerClient); | 65 DISALLOW_COPY_AND_ASSIGN(FakeNfcManagerClient); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace chromeos | 68 } // namespace chromeos |
| 68 | 69 |
| 69 #endif // CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ | 70 #endif // CHROMEOS_DBUS_FAKE_NFC_MANAGER_CLIENT_H_ |
| OLD | NEW |