| 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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/shill_manager_client.h" | 13 #include "chromeos/dbus/shill_manager_client.h" |
| 14 | 14 |
| 15 namespace net { | |
| 16 class IPEndPoint; | |
| 17 } | |
| 18 | |
| 19 namespace chromeos { | 15 namespace chromeos { |
| 20 | 16 |
| 21 // A fake implementation of ShillManagerClient. This works in close coordination | 17 // A fake implementation of ShillManagerClient. This works in close coordination |
| 22 // with FakeShillServiceClient. FakeShillDeviceClient, and | 18 // with FakeShillServiceClient. FakeShillDeviceClient, and |
| 23 // FakeShillProfileClient, and is not intended to be used independently. | 19 // FakeShillProfileClient, and is not intended to be used independently. |
| 24 class CHROMEOS_EXPORT FakeShillManagerClient | 20 class CHROMEOS_EXPORT FakeShillManagerClient |
| 25 : public ShillManagerClient, | 21 : public ShillManagerClient, |
| 26 public ShillManagerClient::TestInterface { | 22 public ShillManagerClient::TestInterface { |
| 27 public: | 23 public: |
| 28 FakeShillManagerClient(); | 24 FakeShillManagerClient(); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Note: This should remain the last member so it'll be destroyed and | 165 // Note: This should remain the last member so it'll be destroyed and |
| 170 // invalidate its weak pointers before any other members are destroyed. | 166 // invalidate its weak pointers before any other members are destroyed. |
| 171 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; | 167 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; |
| 172 | 168 |
| 173 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); | 169 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
| 174 }; | 170 }; |
| 175 | 171 |
| 176 } // namespace chromeos | 172 } // namespace chromeos |
| 177 | 173 |
| 178 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 174 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |