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

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

Issue 1415533006: bluetooth: Implement requestDevice by name or name prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-properties
Patch Set: Merge with ToT and fix histograms conflict Created 5 years, 1 month 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 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 "base/callback.h" 8 #include "base/callback.h"
9 #include "device/bluetooth/test/mock_bluetooth_adapter.h" 9 #include "device/bluetooth/test/mock_bluetooth_adapter.h"
10 #include "device/bluetooth/test/mock_bluetooth_device.h" 10 #include "device/bluetooth/test/mock_bluetooth_device.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 GetEmptyAdapter(); 115 GetEmptyAdapter();
116 116
117 // |GlucoseHeartRateAdapter| 117 // |GlucoseHeartRateAdapter|
118 // Inherits from |EmptyAdapter| 118 // Inherits from |EmptyAdapter|
119 // Devices added: 119 // Devices added:
120 // - |GlucoseDevice| 120 // - |GlucoseDevice|
121 // - |HeartRateDevice| 121 // - |HeartRateDevice|
122 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 122 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
123 GetGlucoseHeartRateAdapter(); 123 GetGlucoseHeartRateAdapter();
124 124
125 // |GetUnicodeDeviceAdapter|
126 // Inherits from |EmptyAdapter|
127 // Internal structure
128 // - UnicodeDevice
129 // - Mock Functions:
130 // - GetName(): Returns "❤❤❤❤❤❤❤❤❤"
131 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
132 GetUnicodeDeviceAdapter();
133
125 // |SecondDiscoveryFindsHeartRateAdapter| 134 // |SecondDiscoveryFindsHeartRateAdapter|
126 // Inherits from |PoweredAdapter| 135 // Inherits from |PoweredAdapter|
127 // Mock Functions: 136 // Mock Functions:
128 // - StartDiscoverySessionWithFilter: 137 // - StartDiscoverySessionWithFilter:
129 // Run success callback with |DiscoverySession|. 138 // Run success callback with |DiscoverySession|.
130 // After the first call, adds a |HeartRateDevice|. 139 // After the first call, adds a |HeartRateDevice|.
131 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 140 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
132 GetSecondDiscoveryFindsHeartRateAdapter(); 141 GetSecondDiscoveryFindsHeartRateAdapter();
133 142
134 // |MissingServiceGenericAccessAdapter| 143 // |MissingServiceGenericAccessAdapter|
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 479
471 // Function to turn an integer into an MAC address of the form 480 // Function to turn an integer into an MAC address of the form
472 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 481 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
473 // returns "00:00:DE:AD:BE:EF". 482 // returns "00:00:DE:AD:BE:EF".
474 static std::string makeMACAddress(uint64_t addr); 483 static std::string makeMACAddress(uint64_t addr);
475 }; 484 };
476 485
477 } // namespace content 486 } // namespace content
478 487
479 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 488 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698