[Password Generation] Enable new UI
[chromium-blink-merge.git] / chromeos / dbus / mock_shill_manager_client.h
blobbf80b64739bb0a212b6249dffd1f6fcd8fa5fd32
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.
5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_manager_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace chromeos {
15 class MockShillManagerClient : public ShillManagerClient {
16 public:
17 MockShillManagerClient();
18 virtual ~MockShillManagerClient();
20 MOCK_METHOD1(Init, void(dbus::Bus* bus));
21 MOCK_METHOD1(AddPropertyChangedObserver,
22 void(ShillPropertyChangedObserver* observer));
23 MOCK_METHOD1(RemovePropertyChangedObserver,
24 void(ShillPropertyChangedObserver* observer));
25 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback));
26 MOCK_METHOD1(GetNetworksForGeolocation,
27 void(const DictionaryValueCallback& callback));
28 MOCK_METHOD4(SetProperty, void(const std::string& name,
29 const base::Value& value,
30 const base::Closure& callback,
31 const ErrorCallback& error_callback));
32 MOCK_METHOD3(RequestScan, void(const std::string& type,
33 const base::Closure& callback,
34 const ErrorCallback& error_callback));
35 MOCK_METHOD3(EnableTechnology, void(const std::string& type,
36 const base::Closure& callback,
37 const ErrorCallback& error_callback));
38 MOCK_METHOD3(DisableTechnology, void(const std::string& type,
39 const base::Closure& callback,
40 const ErrorCallback& error_callback));
41 MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties,
42 const ObjectPathCallback& callback,
43 const ErrorCallback& error_callback));
44 MOCK_METHOD4(ConfigureServiceForProfile,
45 void(const dbus::ObjectPath& profile_path,
46 const base::DictionaryValue& properties,
47 const ObjectPathCallback& callback,
48 const ErrorCallback& error_callback));
49 MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties,
50 const ObjectPathCallback& callback,
51 const ErrorCallback& error_callback));
52 MOCK_METHOD3(VerifyDestination,
53 void(const VerificationProperties& properties,
54 const BooleanCallback& callback,
55 const ErrorCallback& error_callback));
56 MOCK_METHOD4(VerifyAndEncryptCredentials,
57 void(const VerificationProperties& properties,
58 const std::string& service_path,
59 const StringCallback& callback,
60 const ErrorCallback& error_callback));
61 MOCK_METHOD4(VerifyAndEncryptData,
62 void(const VerificationProperties& properties,
63 const std::string& data,
64 const StringCallback& callback,
65 const ErrorCallback& error_callback));
66 MOCK_METHOD2(ConnectToBestServices,
67 void(const base::Closure& callback,
68 const ErrorCallback& error_callback));
69 MOCK_METHOD0(GetTestInterface, TestInterface*());
73 } // namespace chromeos
75 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_