bt_fidl_mocks/
lib.rs

1// Copyright 2019 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use zx::MonotonicDuration;
6
7/// Defines a generic utility to expect calls to a FIDL message and extract their parameters.
8pub mod expect;
9
10/// Mock utilities for fuchsia.bluetooth.sys.
11pub mod sys;
12
13/// Mock utilities for fuchsia.bluetooth.gatt.
14pub mod gatt;
15
16/// Mock utilities for fuchsia.bluetooth.gatt2.
17pub mod gatt2;
18
19/// Mock utilities for fuchsia.hardware.bluetooth.
20pub mod hci;
21
22/// Mock utilities for fuchsia.bluetooth.le.
23pub mod le;
24
25const TIMEOUT_SECONDS: i64 = 4 * 60;
26
27pub fn timeout_duration() -> MonotonicDuration {
28    MonotonicDuration::from_seconds(TIMEOUT_SECONDS)
29}