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

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

Issue 2642123003: Bluetooth: Make maximum possible name filter 248 bytes, not 240 (Closed)
Patch Set: Change all NotFoundErrors to TypeErrors Created 3 years, 10 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 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // - Mock Functions: 132 // - Mock Functions:
133 // - GetName(): Returns "❤❤❤❤❤❤❤❤❤" 133 // - GetName(): Returns "❤❤❤❤❤❤❤❤❤"
134 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 134 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
135 GetUnicodeDeviceAdapter(); 135 GetUnicodeDeviceAdapter();
136 136
137 // |GetDeviceNameLongerThan29BytesAdapter| 137 // |GetDeviceNameLongerThan29BytesAdapter|
138 // Inherits from |EmptyAdapter| 138 // Inherits from |EmptyAdapter|
139 // Internal structure 139 // Internal structure
140 // - DeviceNameLongerThan29Bytes 140 // - DeviceNameLongerThan29Bytes
141 // - Mock Functions: 141 // - Mock Functions:
142 // - GetName(): Returns "a_device_name_that_is_longer_than_29_bytes_but_s horter_than_240_bytes" 142 // - GetName(): Returns "a_device_name_that_is_longer_than_29_bytes_but_s horter_than_248_bytes"
143 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 143 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
144 GetDeviceNameLongerThan29BytesAdapter(); 144 GetDeviceNameLongerThan29BytesAdapter();
145 145
146 // |SecondDiscoveryFindsHeartRateAdapter| 146 // |SecondDiscoveryFindsHeartRateAdapter|
147 // Inherits from |PoweredAdapter| 147 // Inherits from |PoweredAdapter|
148 // Mock Functions: 148 // Mock Functions:
149 // - StartDiscoverySessionWithFilter: 149 // - StartDiscoverySessionWithFilter:
150 // Run success callback with |DiscoverySession|. 150 // Run success callback with |DiscoverySession|.
151 // After the first call, adds a |HeartRateDevice|. 151 // After the first call, adds a |HeartRateDevice|.
152 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 152 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 853
854 // Function to turn an integer into an MAC address of the form 854 // Function to turn an integer into an MAC address of the form
855 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 855 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
856 // returns "00:00:DE:AD:BE:EF". 856 // returns "00:00:DE:AD:BE:EF".
857 static std::string makeMACAddress(uint64_t addr); 857 static std::string makeMACAddress(uint64_t addr);
858 }; 858 };
859 859
860 } // namespace content 860 } // namespace content
861 861
862 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 862 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698