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

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

Issue 1427653003: bluetooth: Implement TxPower and RSSI of BluetoothAdvertisementData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix webexposed test 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // |EmptyAdapter| 107 // |EmptyAdapter|
108 // Inherits from |PoweredAdapter| 108 // Inherits from |PoweredAdapter|
109 // Devices Added: 109 // Devices Added:
110 // None. 110 // None.
111 // Mock Functions: 111 // Mock Functions:
112 // - StartDiscoverySessionWithFilter: 112 // - StartDiscoverySessionWithFilter:
113 // Run success callback with |DiscoverySession|. 113 // Run success callback with |DiscoverySession|.
114 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 114 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
115 GetEmptyAdapter(); 115 GetEmptyAdapter();
116 116
117 // |PowerDeviceAdapter|(power)
118 // Inherits from |EmptyAdapter|
119 // Internal Structure:
120 // - |HeartRateDevice|
121 // - Mock Functions:
122 // - GetInquiryTxPower(): Returns power
123 // - GetInquiryRSSI(): Returns power
124 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
125 GetPowerDeviceAdapter(int power);
126
117 // |GlucoseHeartRateAdapter| 127 // |GlucoseHeartRateAdapter|
118 // Inherits from |EmptyAdapter| 128 // Inherits from |EmptyAdapter|
119 // Devices added: 129 // Devices added:
120 // - |GlucoseDevice| 130 // - |GlucoseDevice|
121 // - |HeartRateDevice| 131 // - |HeartRateDevice|
122 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 132 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
123 GetGlucoseHeartRateAdapter(); 133 GetGlucoseHeartRateAdapter();
124 134
125 // |SecondDiscoveryFindsHeartRateAdapter| 135 // |SecondDiscoveryFindsHeartRateAdapter|
126 // Inherits from |PoweredAdapter| 136 // Inherits from |PoweredAdapter|
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 480
471 // Function to turn an integer into an MAC address of the form 481 // Function to turn an integer into an MAC address of the form
472 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 482 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
473 // returns "00:00:DE:AD:BE:EF". 483 // returns "00:00:DE:AD:BE:EF".
474 static std::string makeMACAddress(uint64_t addr); 484 static std::string makeMACAddress(uint64_t addr);
475 }; 485 };
476 486
477 } // namespace content 487 } // namespace content
478 488
479 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 489 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698