namespace root_canal {
using test_vendor_lib::AsyncTaskId;
-using test_vendor_lib::DualModeController;
using test_vendor_lib::TaskCallback;
void TestEnvironment::initialize(std::promise<void> barrier) {
#include "hci/address.h"
#include "os/log.h"
-using std::shared_ptr;
-
namespace test_vendor_lib {
using ::bluetooth::hci::Address;
auto handle = GetUnusedHandle();
StreamParameters a{.group_id = group_parameters.id,
.stream_id = streams[i].cis_id_,
- .max_sdu_s_to_m = streams[i].max_sdu_s_to_m_,
.max_sdu_m_to_s = streams[i].max_sdu_m_to_s_,
- .handle = handle,
+ .max_sdu_s_to_m = streams[i].max_sdu_s_to_m_,
.rtn_m_to_s = streams[i].rtn_m_to_s_,
- .rtn_s_to_m = streams[i].rtn_s_to_m_};
+ .rtn_s_to_m = streams[i].rtn_s_to_m_,
+ .handle = handle};
handles.push_back(handle);
stream_parameters.push_back(std::move(a));
}
namespace test_vendor_lib {
bool CarKit::registered_ = DeviceBoutique::Register("car_kit", &CarKit::Create);
+const std::string kCarKitPropertiesFile =
+ "/etc/bluetooth/car_kit_controller_properties.json";
CarKit::CarKit() : Device(kCarKitPropertiesFile) {
advertising_interval_ms_ = std::chrono::milliseconds(0);
#include "hci/hci_packets.h"
#include "model/controller/link_layer_controller.h"
-namespace {
-const std::string kCarKitPropertiesFile = "/etc/bluetooth/car_kit_controller_properties.json";
-} // namespace
-
namespace test_vendor_lib {
class CarKit : public Device {
#include "device.h"
-using std::vector;
-
namespace test_vendor_lib {
std::string Device::ToString() const {
#include "model/controller/dual_mode_controller.h"
#include "model/devices/h4_packetizer.h"
-namespace {
-const std::string kHciSocketDevicePropertiesFile = "/etc/bluetooth/hci_socket_device_controller_properties.json";
-} // namespace
-
namespace test_vendor_lib {
class HciSocketDevice : public DualModeController {
#include "model/devices/hci_socket_device.h"
#include "model/devices/link_layer_socket_device.h"
-using std::vector;
-
namespace test_vendor_lib {
TestModel::TestModel(