root/device/bluetooth/test/mock_bluetooth_discovery_session.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// 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 "device/bluetooth/bluetooth_discovery_session.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace device {

class BluetoothAdapter;

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));

 private:
  DISALLOW_COPY_AND_ASSIGN(MockBluetoothDiscoverySession);
};

}  // namespac device

#endif  // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DISCOVERY_SESSION_H_

/* [<][>][^][v][top][bottom][index][help] */