Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / device / bluetooth / test / mock_bluetooth_discovery_session.cc
1 // Copyright 2014 The Chromium 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 #include "device/bluetooth/test/mock_bluetooth_discovery_session.h"
6
7 #include "device/bluetooth/test/mock_bluetooth_adapter.h"
8
9 namespace device {
10
11 // Note: Because |this| class mocks out all the interesting method calls, the
12 // mock BluetoothAdapter will not be used, except for a trivial call from the
13 // destructor. It's passed in simply because the base class expects one, and
14 // it's nice not to need to complicate production code for the sake of simpler
15 // test code.
16 MockBluetoothDiscoverySession::MockBluetoothDiscoverySession()
17     : BluetoothDiscoverySession(
18         scoped_refptr<BluetoothAdapter>(
19             new testing::NiceMock<MockBluetoothAdapter>())) {}
20 MockBluetoothDiscoverySession::~MockBluetoothDiscoverySession() {}
21
22 }  // namespace device