OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 5 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "device/bluetooth/test/mock_bluetooth_advertisement.h" | 8 #include "device/bluetooth/test/mock_bluetooth_advertisement.h" |
8 | 9 |
9 namespace device { | 10 namespace device { |
10 | 11 |
11 using testing::Invoke; | 12 using testing::Invoke; |
12 using testing::_; | 13 using testing::_; |
13 | 14 |
14 MockBluetoothAdapter::Observer::Observer() {} | 15 MockBluetoothAdapter::Observer::Observer() {} |
15 MockBluetoothAdapter::Observer::~Observer() {} | 16 MockBluetoothAdapter::Observer::~Observer() {} |
16 | 17 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 80 } |
80 | 81 |
81 void MockBluetoothAdapter::RegisterAdvertisement( | 82 void MockBluetoothAdapter::RegisterAdvertisement( |
82 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data, | 83 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data, |
83 const CreateAdvertisementCallback& callback, | 84 const CreateAdvertisementCallback& callback, |
84 const CreateAdvertisementErrorCallback& error_callback) { | 85 const CreateAdvertisementErrorCallback& error_callback) { |
85 callback.Run(new MockBluetoothAdvertisement); | 86 callback.Run(new MockBluetoothAdvertisement); |
86 } | 87 } |
87 | 88 |
88 } // namespace device | 89 } // namespace device |
OLD | NEW |