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_IPCONFIG_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_IPCONFIG_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_SHILL_IPCONFIG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_IPCONFIG_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
12 #include "chromeos/dbus/shill_ipconfig_client.h" | 12 #include "chromeos/dbus/shill_ipconfig_client.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 // A fake implementation of ShillIPConfigClient. | 16 // A fake implementation of ShillIPConfigClient. |
17 class CHROMEOS_EXPORT FakeShillIPConfigClient | 17 class CHROMEOS_EXPORT FakeShillIPConfigClient |
18 : public ShillIPConfigClient, | 18 : public ShillIPConfigClient, |
19 public ShillIPConfigClient::TestInterface { | 19 public ShillIPConfigClient::TestInterface { |
20 public: | 20 public: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Note: This should remain the last member so it'll be destroyed and | 59 // Note: This should remain the last member so it'll be destroyed and |
60 // invalidate its weak pointers before any other members are destroyed. | 60 // invalidate its weak pointers before any other members are destroyed. |
61 base::WeakPtrFactory<FakeShillIPConfigClient> weak_ptr_factory_; | 61 base::WeakPtrFactory<FakeShillIPConfigClient> weak_ptr_factory_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(FakeShillIPConfigClient); | 63 DISALLOW_COPY_AND_ASSIGN(FakeShillIPConfigClient); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace chromeos | 66 } // namespace chromeos |
67 | 67 |
68 #endif // CHROMEOS_DBUS_FAKE_SHILL_IPCONFIG_CLIENT_H_ | 68 #endif // CHROMEOS_DBUS_FAKE_SHILL_IPCONFIG_CLIENT_H_ |
OLD | NEW |