mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
Trim the new comments to repo style
This commit is contained in:
@@ -13,9 +13,7 @@ namespace esphome::ble_device_base::testing {
|
||||
//
|
||||
// The in-tree emit site (BK72xxBLETracker::on_scan_report) compiles against
|
||||
// the Beken SDK and cannot run host-side, so the guard-and-fire semantics are
|
||||
// pinned here through a minimal host hub instead. The contract is duck-typed
|
||||
// (BLEHub is a per-platform alias, not a base class), so the fake carries
|
||||
// only the slot surface under test.
|
||||
// pinned here through a minimal host hub carrying only the slot under test.
|
||||
namespace {
|
||||
|
||||
class FakeHub {
|
||||
|
||||
@@ -7,11 +7,8 @@
|
||||
namespace esphome::ble_device_base::testing {
|
||||
|
||||
// Pins the request_scan_mode() contract documented in ble_hub.h: a hub
|
||||
// without a mode switch refuses without changing any state (so callers report
|
||||
// the real state back), while a switching hub both honors the request and
|
||||
// applies it. The contract is duck-typed (BLEHub is a per-platform alias),
|
||||
// so the shapes are pinned through minimal host hubs mirroring the in-tree
|
||||
// tracker stubs.
|
||||
// without a mode switch refuses without changing any state, a switching hub
|
||||
// honors and applies. Minimal host hubs mirror the in-tree tracker stubs.
|
||||
namespace {
|
||||
|
||||
class RefusingHub {
|
||||
|
||||
Reference in New Issue
Block a user