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

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

Issue 2615273002: Bump Bluetooth max filter name length from 29 bytes to 240 bytes (Closed)
Patch Set: Correct fake test value Created 3 years, 11 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // |GetUnicodeDeviceAdapter| 128 // |GetUnicodeDeviceAdapter|
129 // Inherits from |EmptyAdapter| 129 // Inherits from |EmptyAdapter|
130 // Internal structure 130 // Internal structure
131 // - UnicodeDevice 131 // - UnicodeDevice
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|
138 // Inherits from |EmptyAdapter|
139 // Internal structure
140 // - DeviceNameLongerThan29Bytes
141 // - Mock Functions:
142 // - GetName(): Returns "a_device_name_that_is_longer_than_29_bytes_but_s horter_than_240_bytes"
143 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
144 GetDeviceNameLongerThan29BytesAdapter();
145
137 // |SecondDiscoveryFindsHeartRateAdapter| 146 // |SecondDiscoveryFindsHeartRateAdapter|
138 // Inherits from |PoweredAdapter| 147 // Inherits from |PoweredAdapter|
139 // Mock Functions: 148 // Mock Functions:
140 // - StartDiscoverySessionWithFilter: 149 // - StartDiscoverySessionWithFilter:
141 // Run success callback with |DiscoverySession|. 150 // Run success callback with |DiscoverySession|.
142 // After the first call, adds a |HeartRateDevice|. 151 // After the first call, adds a |HeartRateDevice|.
143 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 152 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
144 GetSecondDiscoveryFindsHeartRateAdapter(); 153 GetSecondDiscoveryFindsHeartRateAdapter();
145 154
146 // |DeviceEventAdapter| 155 // |DeviceEventAdapter|
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 846
838 // Function to turn an integer into an MAC address of the form 847 // Function to turn an integer into an MAC address of the form
839 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 848 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
840 // returns "00:00:DE:AD:BE:EF". 849 // returns "00:00:DE:AD:BE:EF".
841 static std::string makeMACAddress(uint64_t addr); 850 static std::string makeMACAddress(uint64_t addr);
842 }; 851 };
843 852
844 } // namespace content 853 } // namespace content
845 854
846 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 855 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698