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 CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ 7 8 #include "base/values.h" 9 #include "chromeos/dbus/shill_profile_client.h" 10 #include "chromeos/dbus/shill_property_changed_observer.h" 11 #include "dbus/object_path.h" 12 #include "testing/gmock/include/gmock/gmock.h" 13 14 namespace chromeos { 15 16 class ShillPropertyChangedObserver; 17 18 class MockShillProfileClient : public ShillProfileClient { 19 public: 20 MockShillProfileClient(); 21 virtual ~MockShillProfileClient(); 22 23 MOCK_METHOD1(Init, void(dbus::Bus* bus)); 24 MOCK_METHOD2(AddPropertyChangedObserver, 25 void(const dbus::ObjectPath& profile_path, 26 ShillPropertyChangedObserver* observer)); 27 MOCK_METHOD2(RemovePropertyChangedObserver, 28 void(const dbus::ObjectPath& profile_path, 29 ShillPropertyChangedObserver* observer)); 30 MOCK_METHOD3(GetProperties, void( 31 const dbus::ObjectPath& profile_path, 32 const DictionaryValueCallbackWithoutStatus& callback, 33 const ErrorCallback& error_callback)); 34 MOCK_METHOD4(GetEntry, void( 35 const dbus::ObjectPath& profile_path, 36 const std::string& entry_path, 37 const DictionaryValueCallbackWithoutStatus& callback, 38 const ErrorCallback& error_callback)); 39 MOCK_METHOD4(DeleteEntry, void(const dbus::ObjectPath& profile_path, 40 const std::string& entry_path, 41 const base::Closure& callback, 42 const ErrorCallback& error_callback)); 43 MOCK_METHOD0(GetTestInterface, TestInterface*()); 44 }; 45 46 } // namespace chromeos 47 48 #endif // CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ 49