blob: aa909dfe208c1d6b8fce552791a0e78292131be8 [file] [log] [blame]
Peter Qiufb39ba42014-11-21 09:09:59 -08001// Copyright 2014 The Chromium OS 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.
4
5#ifndef APMANAGER_MOCK_MANAGER_H_
6#define APMANAGER_MOCK_MANAGER_H_
7
8#include <string>
9
10#include <base/macros.h>
11#include <gmock/gmock.h>
12
13#include "apmanager/manager.h"
14
15namespace apmanager {
16
17class MockManager : public Manager {
18 public:
19 MockManager();
20 ~MockManager() override;
21
22 MOCK_METHOD0(Start, void());
23 MOCK_METHOD0(Stop, void());
24 MOCK_METHOD1(RegisterDevice, void(scoped_refptr<Device> device));
25 MOCK_METHOD0(GetAvailableDevice, scoped_refptr<Device>());
26 MOCK_METHOD1(GetDeviceFromInterfaceName,
27 scoped_refptr<Device>(const std::string& interface_name));
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockManager);
31};
32
33} // namespace apmanager
34
35#endif // APMANAGER_MOCK_MANAGER_H_