Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: device/bluetooth/test/mock_bluetooth_adapter.cc

Issue 2762023002: work in progress 2
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, 50 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
51 const base::Closure& callback, 51 const base::Closure& callback,
52 const DiscoverySessionErrorCallback& error_callback) { 52 const DiscoverySessionErrorCallback& error_callback) {
53 SetDiscoveryFilterRaw(discovery_filter.get(), callback, error_callback); 53 SetDiscoveryFilterRaw(discovery_filter.get(), callback, error_callback);
54 } 54 }
55 55
56 void MockBluetoothAdapter::StartDiscoverySessionWithFilter( 56 void MockBluetoothAdapter::StartDiscoverySessionWithFilter(
57 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, 57 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
58 const DiscoverySessionCallback& callback, 58 const DiscoverySessionCallback& callback,
59 const ErrorCallback& error_callback) { 59 const ErrorCallback& error_callback) {
60 LOG(ERROR) << "[DJKim] MockBluetoothAdapter::StartDiscoverySessionWithFilter";
60 StartDiscoverySessionWithFilterRaw(discovery_filter.get(), callback, 61 StartDiscoverySessionWithFilterRaw(discovery_filter.get(), callback,
61 error_callback); 62 error_callback);
62 } 63 }
63 64
64 void MockBluetoothAdapter::AddMockDevice( 65 void MockBluetoothAdapter::AddMockDevice(
65 std::unique_ptr<MockBluetoothDevice> mock_device) { 66 std::unique_ptr<MockBluetoothDevice> mock_device) {
66 mock_devices_.push_back(std::move(mock_device)); 67 mock_devices_.push_back(std::move(mock_device));
67 } 68 }
68 69
69 std::unique_ptr<MockBluetoothDevice> MockBluetoothAdapter::RemoveMockDevice( 70 std::unique_ptr<MockBluetoothDevice> MockBluetoothAdapter::RemoveMockDevice(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 105
105 #if defined(OS_CHROMEOS) || defined(OS_LINUX) 106 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
106 void MockBluetoothAdapter::SetAdvertisingInterval( 107 void MockBluetoothAdapter::SetAdvertisingInterval(
107 const base::TimeDelta& min, 108 const base::TimeDelta& min,
108 const base::TimeDelta& max, 109 const base::TimeDelta& max,
109 const base::Closure& callback, 110 const base::Closure& callback,
110 const AdvertisementErrorCallback& error_callback) {} 111 const AdvertisementErrorCallback& error_callback) {}
111 #endif 112 #endif
112 113
113 } // namespace device 114 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698