Remove Win8+ condition from HandleOsUpgradeForBrowser().
[chromium-blink-merge.git] / chromeos / dbus / mock_shill_manager_client.h
blob7fa16ee6999cb9cce04e98394601e61b8f8e8581
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 "net/base/ip_endpoint.h"
12 #include "testing/gmock/include/gmock/gmock.h"
14 namespace chromeos {
16 class MockShillManagerClient : public ShillManagerClient {
17 public:
18 MockShillManagerClient();
19 virtual ~MockShillManagerClient();
21 MOCK_METHOD1(Init, void(dbus::Bus* bus));
22 MOCK_METHOD1(AddPropertyChangedObserver,
23 void(ShillPropertyChangedObserver* observer));
24 MOCK_METHOD1(RemovePropertyChangedObserver,
25 void(ShillPropertyChangedObserver* observer));
26 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback));
27 MOCK_METHOD1(GetNetworksForGeolocation,
28 void(const DictionaryValueCallback& callback));
29 MOCK_METHOD4(SetProperty, void(const std::string& name,
30 const base::Value& value,
31 const base::Closure& callback,
32 const ErrorCallback& error_callback));
33 MOCK_METHOD3(RequestScan, void(const std::string& type,
34 const base::Closure& callback,
35 const ErrorCallback& error_callback));
36 MOCK_METHOD3(EnableTechnology, void(const std::string& type,
37 const base::Closure& callback,
38 const ErrorCallback& error_callback));
39 MOCK_METHOD3(DisableTechnology, void(const std::string& type,
40 const base::Closure& callback,
41 const ErrorCallback& error_callback));
42 MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties,
43 const ObjectPathCallback& callback,
44 const ErrorCallback& error_callback));
45 MOCK_METHOD4(ConfigureServiceForProfile,
46 void(const dbus::ObjectPath& profile_path,
47 const base::DictionaryValue& properties,
48 const ObjectPathCallback& callback,
49 const ErrorCallback& error_callback));
50 MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties,
51 const ObjectPathCallback& callback,
52 const ErrorCallback& error_callback));
53 MOCK_METHOD3(VerifyDestination,
54 void(const VerificationProperties& properties,
55 const BooleanCallback& callback,
56 const ErrorCallback& error_callback));
57 MOCK_METHOD4(VerifyAndEncryptCredentials,
58 void(const VerificationProperties& properties,
59 const std::string& service_path,
60 const StringCallback& callback,
61 const ErrorCallback& error_callback));
62 MOCK_METHOD4(VerifyAndEncryptData,
63 void(const VerificationProperties& properties,
64 const std::string& data,
65 const StringCallback& callback,
66 const ErrorCallback& error_callback));
67 MOCK_METHOD2(ConnectToBestServices,
68 void(const base::Closure& callback,
69 const ErrorCallback& error_callback));
70 MOCK_METHOD0(GetTestInterface, TestInterface*());
74 } // namespace chromeos
76 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_