| 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 #include "chromeos/dbus/fake_nfc_adapter_client.h" | 5 #include "chromeos/dbus/fake_nfc_adapter_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chromeos/dbus/dbus_thread_manager.h" | 8 #include "chromeos/dbus/dbus_thread_manager.h" |
| 9 #include "chromeos/dbus/fake_nfc_device_client.h" | 9 #include "chromeos/dbus/fake_nfc_device_client.h" |
| 10 #include "chromeos/dbus/fake_nfc_tag_client.h" | 10 #include "chromeos/dbus/fake_nfc_tag_client.h" |
| 11 #include "chromeos/dbus/nfc_client_helpers.h" | |
| 12 #include "dbus/message.h" | 11 #include "dbus/message.h" |
| 13 #include "dbus/object_path.h" | 12 #include "dbus/object_path.h" |
| 14 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 15 | 14 |
| 16 namespace chromeos { | 15 namespace chromeos { |
| 17 | 16 |
| 18 using nfc_client_helpers::ObjectPathVector; | 17 using nfc_client_helpers::ObjectPathVector; |
| 19 | 18 |
| 20 const char FakeNfcAdapterClient::kAdapterPath0[] = "/fake/nfc0"; | 19 const char FakeNfcAdapterClient::kAdapterPath0[] = "/fake/nfc0"; |
| 21 const char FakeNfcAdapterClient::kAdapterPath1[] = "/fake/nfc1"; | 20 const char FakeNfcAdapterClient::kAdapterPath1[] = "/fake/nfc1"; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 } | 318 } |
| 320 | 319 |
| 321 void FakeNfcAdapterClient::OnPropertyChanged( | 320 void FakeNfcAdapterClient::OnPropertyChanged( |
| 322 const dbus::ObjectPath& object_path, | 321 const dbus::ObjectPath& object_path, |
| 323 const std::string& property_name) { | 322 const std::string& property_name) { |
| 324 FOR_EACH_OBSERVER(NfcAdapterClient::Observer, observers_, | 323 FOR_EACH_OBSERVER(NfcAdapterClient::Observer, observers_, |
| 325 AdapterPropertyChanged(object_path, property_name)); | 324 AdapterPropertyChanged(object_path, property_name)); |
| 326 } | 325 } |
| 327 | 326 |
| 328 } // namespace chromeos | 327 } // namespace chromeos |
| OLD | NEW |