Loading system/gd/hci/device_database.h +1 −4 Original line number Diff line number Diff line Loading @@ -37,10 +37,7 @@ namespace bluetooth::hci { */ class DeviceDatabase { public: DeviceDatabase() : classic_device_map_(*new std::map<std::string, std::shared_ptr<ClassicDevice>>), le_device_map_(*new std::map<std::string, std::shared_ptr<LeDevice>>), dual_device_map_(*new std::map<std::string, std::shared_ptr<DualDevice>>) { DeviceDatabase() : classic_device_map_(), le_device_map_(), dual_device_map_() { if (!ReadFromDisk()) { LOG_WARN("First boot or missing data!"); } Loading system/gd/security/test/fake_l2cap_test.cc +3 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,9 @@ TEST_F(FakeL2capTest, test_bidi_queue_example) { EXPECT_TRUE(other_end_packet != nullptr); bidi_queue.GetDownEnd()->UnregisterDequeue(); handler_->Clear(); delete handler_; delete thread_; } } // namespace security Loading Loading
system/gd/hci/device_database.h +1 −4 Original line number Diff line number Diff line Loading @@ -37,10 +37,7 @@ namespace bluetooth::hci { */ class DeviceDatabase { public: DeviceDatabase() : classic_device_map_(*new std::map<std::string, std::shared_ptr<ClassicDevice>>), le_device_map_(*new std::map<std::string, std::shared_ptr<LeDevice>>), dual_device_map_(*new std::map<std::string, std::shared_ptr<DualDevice>>) { DeviceDatabase() : classic_device_map_(), le_device_map_(), dual_device_map_() { if (!ReadFromDisk()) { LOG_WARN("First boot or missing data!"); } Loading
system/gd/security/test/fake_l2cap_test.cc +3 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,9 @@ TEST_F(FakeL2capTest, test_bidi_queue_example) { EXPECT_TRUE(other_end_packet != nullptr); bidi_queue.GetDownEnd()->UnregisterDequeue(); handler_->Clear(); delete handler_; delete thread_; } } // namespace security Loading