blob: 754380f2170b6fe1959f2c3066974da38fb4aee0 (
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
|
// Copyright 2014 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 DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DISCOVERY_SESSION_H_
#define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DISCOVERY_SESSION_H_
#include "base/callback.h"
#include "base/macros.h"
#include "device/bluetooth/bluetooth_discovery_session.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace device {
class MockBluetoothDiscoverySession : public BluetoothDiscoverySession {
public:
MockBluetoothDiscoverySession();
virtual ~MockBluetoothDiscoverySession();
MOCK_CONST_METHOD0(IsActive, bool());
MOCK_METHOD2(Stop,
void(const base::Closure& callback,
const ErrorCallback& error_callback));
MOCK_METHOD3(SetDiscoveryFilterRaw,
void(BluetoothDiscoveryFilter* discovery_filter,
const base::Closure& callback,
const ErrorCallback& error_callback));
protected:
void SetDiscoveryFilter(scoped_ptr<BluetoothDiscoveryFilter> discovery_filter,
const base::Closure& callback,
const ErrorCallback& error_callback) override;
private:
DISALLOW_COPY_AND_ASSIGN(MockBluetoothDiscoverySession);
};
} // namespac device
#endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DISCOVERY_SESSION_H_
|