aboutsummaryrefslogtreecommitdiffstats
path: root/brillo/dbus/mock_dbus_object.h
blob: 75cfb715f5e068602bb5aa2199825db656036765 (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
// Copyright 2014 The Chromium OS 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 LIBCHROMEOS_BRILLO_DBUS_MOCK_DBUS_OBJECT_H_
#define LIBCHROMEOS_BRILLO_DBUS_MOCK_DBUS_OBJECT_H_

#include <string>

#include <brillo/dbus/async_event_sequencer.h>
#include <brillo/dbus/dbus_object.h>
#include <gmock/gmock.h>

namespace brillo {
namespace dbus_utils {

class MockDBusObject : public DBusObject {
 public:
  MockDBusObject(ExportedObjectManager* object_manager,
                 const scoped_refptr<dbus::Bus>& bus,
                 const dbus::ObjectPath& object_path)
      : DBusObject(object_manager, bus, object_path) {}
  ~MockDBusObject() override = default;

  MOCK_METHOD1(RegisterAsync,
               void(const AsyncEventSequencer::CompletionAction&));
};  // class MockDBusObject

}  // namespace dbus_utils
}  // namespace brillo

#endif  // LIBCHROMEOS_BRILLO_DBUS_MOCK_DBUS_OBJECT_H_