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

Side by Side Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h

Issue 2858803003: bluetooth: Implement simulatePreconnectedPeripheral. (Closed)
Patch Set: Merge branch 'master' into bluetooth-simulate-preconnected Created 3 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 | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 GetEmptyAdapter(); 100 GetEmptyAdapter();
101 101
102 // |GlucoseHeartRateAdapter| 102 // |GlucoseHeartRateAdapter|
103 // Inherits from |EmptyAdapter| 103 // Inherits from |EmptyAdapter|
104 // Devices added: 104 // Devices added:
105 // - |GlucoseDevice| 105 // - |GlucoseDevice|
106 // - |HeartRateDevice| 106 // - |HeartRateDevice|
107 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 107 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
108 GetGlucoseHeartRateAdapter(); 108 GetGlucoseHeartRateAdapter();
109 109
110 // |GetUnicodeDeviceAdapter|
111 // Inherits from |EmptyAdapter|
112 // Internal structure
113 // - UnicodeDevice
114 // - Mock Functions:
115 // - GetName(): Returns "❤❤❤❤❤❤❤❤❤"
116 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
117 GetUnicodeDeviceAdapter();
118
119 // |GetDeviceNameLongerThan29BytesAdapter|
120 // Inherits from |EmptyAdapter|
121 // Internal structure
122 // - DeviceNameLongerThan29Bytes
123 // - Mock Functions:
124 // - GetName(): Returns "a_device_name_that_is_longer_than_29_bytes_but_s horter_than_248_bytes"
125 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
126 GetDeviceNameLongerThan29BytesAdapter();
127
128 // |SecondDiscoveryFindsHeartRateAdapter| 110 // |SecondDiscoveryFindsHeartRateAdapter|
129 // Inherits from |PoweredAdapter| 111 // Inherits from |PoweredAdapter|
130 // Mock Functions: 112 // Mock Functions:
131 // - StartDiscoverySessionWithFilter: 113 // - StartDiscoverySessionWithFilter:
132 // Run success callback with |DiscoverySession|. 114 // Run success callback with |DiscoverySession|.
133 // After the first call, adds a |HeartRateDevice|. 115 // After the first call, adds a |HeartRateDevice|.
134 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 116 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
135 GetSecondDiscoveryFindsHeartRateAdapter(); 117 GetSecondDiscoveryFindsHeartRateAdapter();
136 118
137 // |DeviceEventAdapter| 119 // |DeviceEventAdapter|
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // - Generic Access UUID (0x1800) 199 // - Generic Access UUID (0x1800)
218 // - Heart Rate UUID (0x180d) 200 // - Heart Rate UUID (0x180d)
219 // - Services: 201 // - Services:
220 // - Generic Access Service - Characteristics as described in 202 // - Generic Access Service - Characteristics as described in
221 // GetGenericAccessService. 203 // GetGenericAccessService.
222 // - Heart Rate Service - Characteristics as described in 204 // - Heart Rate Service - Characteristics as described in
223 // GetHeartRateService. 205 // GetHeartRateService.
224 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 206 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
225 GetHeartRateAdapter(); 207 GetHeartRateAdapter();
226 208
227 // |GetEmptyNameDeviceAdapter|
228 // Inherits from |EmptyAdapter|
229 // Contains a single device with an empty name and no UUIDs.
230 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
231 GetEmptyNameDeviceAdapter();
232
233 // |GetNoNameDeviceAdapter| 209 // |GetNoNameDeviceAdapter|
234 // Inherits from |EmptyAdapter| 210 // Inherits from |EmptyAdapter|
235 // Contains a single device with no name and no UUIDs. 211 // Contains a single device with no name and no UUIDs.
236 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 212 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
237 GetNoNameDeviceAdapter(); 213 GetNoNameDeviceAdapter();
238 214
239 // |GetEmptyNameHeartRateAdapter| 215 // |GetEmptyNameHeartRateAdapter|
240 // Inherits from |EmptyAdapter| 216 // Inherits from |EmptyAdapter|
241 // Internal Structure: 217 // Internal Structure:
242 // - Heart Rate Device 218 // - Heart Rate Device
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 801
826 // Function to turn an integer into an MAC address of the form 802 // Function to turn an integer into an MAC address of the form
827 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 803 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
828 // returns "00:00:DE:AD:BE:EF". 804 // returns "00:00:DE:AD:BE:EF".
829 static std::string makeMACAddress(uint64_t addr); 805 static std::string makeMACAddress(uint64_t addr);
830 }; 806 };
831 807
832 } // namespace content 808 } // namespace content
833 809
834 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 810 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698