1a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 2a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// found in the LICENSE file. 4a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 5a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#include "device/bluetooth/test/mock_bluetooth_discovery_session.h" 6a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 7116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "device/bluetooth/test/mock_bluetooth_adapter.h" 8a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 9a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)namespace device { 10a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 11116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Note: Because |this| class mocks out all the interesting method calls, the 12116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// mock BluetoothAdapter will not be used, except for a trivial call from the 13116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// destructor. It's passed in simply because the base class expects one, and 14116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// it's nice not to need to complicate production code for the sake of simpler 15116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// test code. 16116680a4aac90f2aa7413d9095a592090648e557Ben MurdochMockBluetoothDiscoverySession::MockBluetoothDiscoverySession() 17116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch : BluetoothDiscoverySession( 18116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch scoped_refptr<BluetoothAdapter>( 19116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch new testing::NiceMock<MockBluetoothAdapter>())) {} 20a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)MockBluetoothDiscoverySession::~MockBluetoothDiscoverySession() {} 21a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 22a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)} // namespace device 23