summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/mock_shill_profile_client.h
blob: 9bf2012d7f1c963ef1cf9a30e6278e0d7004aff5 (plain)
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
// 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_PROFILE_CLIENT_H_
#define CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_

#include "base/values.h"
#include "chromeos/dbus/shill_profile_client.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
#include "dbus/object_path.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace chromeos {

class ShillPropertyChangedObserver;

class MockShillProfileClient : public ShillProfileClient {
 public:
  MockShillProfileClient();
  virtual ~MockShillProfileClient();

  MOCK_METHOD1(Init, void(dbus::Bus* bus));
  MOCK_METHOD2(AddPropertyChangedObserver,
               void(const dbus::ObjectPath& profile_path,
                    ShillPropertyChangedObserver* observer));
  MOCK_METHOD2(RemovePropertyChangedObserver,
               void(const dbus::ObjectPath& profile_path,
                    ShillPropertyChangedObserver* observer));
  MOCK_METHOD3(GetProperties, void(
      const dbus::ObjectPath& profile_path,
      const DictionaryValueCallbackWithoutStatus& callback,
      const ErrorCallback& error_callback));
  MOCK_METHOD4(GetEntry, void(
      const dbus::ObjectPath& profile_path,
      const std::string& entry_path,
      const DictionaryValueCallbackWithoutStatus& callback,
      const ErrorCallback& error_callback));
  MOCK_METHOD4(DeleteEntry, void(const dbus::ObjectPath& profile_path,
                                 const std::string& entry_path,
                                 const base::Closure& callback,
                                 const ErrorCallback& error_callback));
  MOCK_METHOD0(GetTestInterface, TestInterface*());
};

}  // namespace chromeos

#endif  // CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_