OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chromeos/dbus/flimflam_ipconfig_client.h" | 9 #include "chromeos/dbus/flimflam_ipconfig_client.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class MockFlimflamIPConfigClient : public FlimflamIPConfigClient { | 14 class MockFlimflamIPConfigClient : public FlimflamIPConfigClient { |
15 public: | 15 public: |
16 MockFlimflamIPConfigClient(); | 16 MockFlimflamIPConfigClient(); |
17 virtual ~MockFlimflamIPConfigClient(); | 17 virtual ~MockFlimflamIPConfigClient(); |
18 | 18 |
19 MOCK_METHOD1(SetPropertyChangedHandler, | 19 MOCK_METHOD1(SetPropertyChangedHandler, |
20 void(const PropertyChangedHandler& handler)); | 20 void(const PropertyChangedHandler& handler)); |
21 MOCK_METHOD0(ResetPropertyChangedHandler, void()); | 21 MOCK_METHOD0(ResetPropertyChangedHandler, void()); |
22 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback)); | 22 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback)); |
23 MOCK_METHOD3(SetProperty, void(const std::string& name, | 23 MOCK_METHOD3(SetProperty, void(const std::string& name, |
24 const base::Value& value, | 24 const base::Value& value, |
25 const VoidCallback& callback)); | 25 const VoidCallback& callback)); |
26 MOCK_METHOD2(ClearProperty, void(const std::string& name, | 26 MOCK_METHOD2(ClearProperty, void(const std::string& name, |
27 const VoidCallback& callback)); | 27 const VoidCallback& callback)); |
28 MOCK_METHOD1(Remove, void(const VoidCallback& callback)); | 28 MOCK_METHOD1(Remove, void(const VoidCallback& callback)); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace chromeos | 31 } // namespace chromeos |
32 | 32 |
33 #endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ | 33 #endif // CHROMEOS_DBUS_MOCK_FLIMFLAM_IPCONFIG_CLIENT_H_ |
OLD | NEW |