| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_ADAPTER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.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_adapter_client.h" | 14 #include "chromeos/dbus/nfc_adapter_client.h" |
| 14 #include "chromeos/dbus/nfc_client_helpers.h" | 15 #include "chromeos/dbus/nfc_client_helpers.h" |
| 15 | 16 |
| 16 namespace chromeos { | 17 namespace chromeos { |
| 17 | 18 |
| 18 // FakeNfcAdapterClient simulates the behavior of the NFC adapter objects | 19 // FakeNfcAdapterClient simulates the behavior of the NFC adapter objects |
| 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. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // If true, device pairing will be simulated on the next call to | 108 // If true, device pairing will be simulated on the next call to |
| 108 // StartPollLoop. Otherwise, tag pairing will be simulated. | 109 // StartPollLoop. Otherwise, tag pairing will be simulated. |
| 109 bool device_pairing_; | 110 bool device_pairing_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(FakeNfcAdapterClient); | 112 DISALLOW_COPY_AND_ASSIGN(FakeNfcAdapterClient); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace chromeos | 115 } // namespace chromeos |
| 115 | 116 |
| 116 #endif // CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ | 117 #endif // CHROMEOS_DBUS_FAKE_NFC_ADAPTER_CLIENT_H_ |
| OLD | NEW |