summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/mock_gsm_sms_client.h
blob: bc0bee99c4d38bb43a23522e3091aace593a89e2 (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
// 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_GSM_SMS_CLIENT_H_
#define CHROMEOS_DBUS_MOCK_GSM_SMS_CLIENT_H_

#include <string>

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

namespace chromeos {

class MockGsmSMSClient : public GsmSMSClient {
 public:
  MockGsmSMSClient();
  virtual ~MockGsmSMSClient();

  MOCK_METHOD3(SetSmsReceivedHandler, void(const std::string& service_name,
                                           const dbus::ObjectPath& object_path,
                                           const SmsReceivedHandler& handler));
  MOCK_METHOD2(ResetSmsReceivedHandler,
               void(const std::string& service_name,
                    const dbus::ObjectPath& object_path));
  MOCK_METHOD4(Delete, void(const std::string& service_name,
                            const dbus::ObjectPath& object_path,
                            uint32 index,
                            const DeleteCallback& callback));
  MOCK_METHOD4(Get, void(const std::string& service_name,
                         const dbus::ObjectPath& object_path,
                         uint32 index,
                         const GetCallback& callback));
  MOCK_METHOD3(List, void(const std::string& service_name,
                          const dbus::ObjectPath& object_path,
                          const ListCallback& callback));
  MOCK_METHOD2(RequestUpdate, void(const std::string& service_name,
                                   const dbus::ObjectPath& object_path));
};

}  // namespace chromeos

#endif  // CHROMEOS_DBUS_MOCK_GSM_SMS_CLIENT_H_