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

Side by Side Diff: device/bluetooth/bluetooth_adapter_unittest.cc

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 7 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
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/bluetooth_adapter.h" 5 #include "device/bluetooth/bluetooth_adapter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void RegisterAudioSink( 96 void RegisterAudioSink(
97 const BluetoothAudioSink::Options& options, 97 const BluetoothAudioSink::Options& options,
98 const AcquiredCallback& callback, 98 const AcquiredCallback& callback,
99 const BluetoothAudioSink::ErrorCallback& error_callback) override {} 99 const BluetoothAudioSink::ErrorCallback& error_callback) override {}
100 100
101 void RegisterAdvertisement( 101 void RegisterAdvertisement(
102 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 102 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
103 const CreateAdvertisementCallback& callback, 103 const CreateAdvertisementCallback& callback,
104 const CreateAdvertisementErrorCallback& error_callback) override {} 104 const CreateAdvertisementErrorCallback& error_callback) override {}
105 105
106 BluetoothLocalGattService* GetGattService(
107 const std::string& identifier) const override {
108 return nullptr;
109 }
110
106 void TestErrorCallback() {} 111 void TestErrorCallback() {}
107 112
108 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; 113 ScopedVector<BluetoothDiscoverySession> discovery_sessions_;
109 114
110 void TestOnStartDiscoverySession( 115 void TestOnStartDiscoverySession(
111 std::unique_ptr<device::BluetoothDiscoverySession> discovery_session) { 116 std::unique_ptr<device::BluetoothDiscoverySession> discovery_session) {
112 discovery_sessions_.push_back(std::move(discovery_session)); 117 discovery_sessions_.push_back(std::move(discovery_session));
113 } 118 }
114 119
115 void CleanupSessions() { discovery_sessions_.clear(); } 120 void CleanupSessions() { discovery_sessions_.clear(); }
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 service->Register(GetCallback(Call::NOT_EXPECTED), 763 service->Register(GetCallback(Call::NOT_EXPECTED),
759 GetGattErrorCallback(Call::EXPECTED)); 764 GetGattErrorCallback(Call::EXPECTED));
760 service->Unregister(GetCallback(Call::EXPECTED), 765 service->Unregister(GetCallback(Call::EXPECTED),
761 GetGattErrorCallback(Call::NOT_EXPECTED)); 766 GetGattErrorCallback(Call::NOT_EXPECTED));
762 service->Unregister(GetCallback(Call::NOT_EXPECTED), 767 service->Unregister(GetCallback(Call::NOT_EXPECTED),
763 GetGattErrorCallback(Call::EXPECTED)); 768 GetGattErrorCallback(Call::EXPECTED));
764 } 769 }
765 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) 770 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX)
766 771
767 } // namespace device 772 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698