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