| 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_SHILL_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 #include "chromeos/dbus/shill_device_client.h" | 14 #include "chromeos/dbus/shill_device_client.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 | 17 |
| 18 // A fake implementation of ShillDeviceClient. | 18 // A fake implementation of ShillDeviceClient. |
| 19 // Implemented: Stub cellular device for SMS testing. | 19 // Implemented: Stub cellular device for SMS testing. |
| 20 class CHROMEOS_EXPORT FakeShillDeviceClient | 20 class CHROMEOS_EXPORT FakeShillDeviceClient |
| 21 : public ShillDeviceClient, | 21 : public ShillDeviceClient, |
| 22 public ShillDeviceClient::TestInterface { | 22 public ShillDeviceClient::TestInterface { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Note: This should remain the last member so it'll be destroyed and | 172 // Note: This should remain the last member so it'll be destroyed and |
| 173 // invalidate its weak pointers before any other members are destroyed. | 173 // invalidate its weak pointers before any other members are destroyed. |
| 174 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; | 174 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); | 176 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace chromeos | 179 } // namespace chromeos |
| 180 | 180 |
| 181 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 181 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
| OLD | NEW |