1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
#define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
#include "base/values.h"
#include "chromeos/dbus/shill_manager_client.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
#include "net/base/ip_endpoint.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockShillManagerClient : public ShillManagerClient {
public:
MockShillManagerClient();
virtual ~MockShillManagerClient();
MOCK_METHOD1(Init, void(dbus::Bus* bus));
MOCK_METHOD1(AddPropertyChangedObserver,
void(ShillPropertyChangedObserver* observer));
MOCK_METHOD1(RemovePropertyChangedObserver,
void(ShillPropertyChangedObserver* observer));
MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback));
MOCK_METHOD1(GetNetworksForGeolocation,
void(const DictionaryValueCallback& callback));
MOCK_METHOD4(SetProperty, void(const std::string& name,
const base::Value& value,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(RequestScan, void(const std::string& type,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(EnableTechnology, void(const std::string& type,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(DisableTechnology, void(const std::string& type,
const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties,
const ObjectPathCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(ConfigureServiceForProfile,
void(const dbus::ObjectPath& profile_path,
const base::DictionaryValue& properties,
const ObjectPathCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties,
const ObjectPathCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(VerifyDestination,
void(const VerificationProperties& properties,
const BooleanCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(VerifyAndEncryptCredentials,
void(const VerificationProperties& properties,
const std::string& service_path,
const StringCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD4(VerifyAndEncryptData,
void(const VerificationProperties& properties,
const std::string& data,
const StringCallback& callback,
const ErrorCallback& error_callback));
MOCK_METHOD2(ConnectToBestServices,
void(const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD0(GetTestInterface, TestInterface*());
};
} // namespace chromeos
#endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
|