Skip to content

Commit

Permalink
🚧 (REVIEW): Remove method sendData
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Feb 23, 2022
1 parent 1d2654c commit 2ede741
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions libs/BLEKit/include/internal/BLEService.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ class BLEService : public GattService
BLEService(const UUID &uuid, std::span<GattCharacteristic *> characteristics)
: GattService(uuid, characteristics.data(), std::size(characteristics)) {};

virtual void onDataReceived(const data_received_handle_t &handle) = 0;

virtual void onDataReceived(const data_received_handle_t &handle) = 0;
virtual void onDataReadyToSend(const data_to_send_handler_t &function) = 0;
virtual void sendData() = 0;
};

} // namespace leka::interface
2 changes: 0 additions & 2 deletions tests/unit/mocks/mocks/leka/BLEService.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class BLEService : public interface::BLEService
}

MOCK_METHOD(void, onDataReceived, (const data_received_handle_t &params), (override));

MOCK_METHOD(void, onDataReadyToSend, (const data_to_send_handler_t &function), (override));
MOCK_METHOD(void, sendData, (), (override));
};

} // namespace leka::mock

0 comments on commit 2ede741

Please sign in to comment.