Class com.nikted.had.bluetooth.unit.codec.protobuf.ProtoCodecTest

10

tests

0

failures

0

ignored

0.113s

duration

100%

successful

Tests

Test Duration Result
test_proto_codec_request_encode_and_decode_device_identifier 0s passed
test_proto_codec_request_encode_and_decode_receiver_params 0.001s passed
test_proto_codec_request_encode_and_decode_sound_config 0s passed
test_proto_codec_request_encode_write_audiology_config 0.011s passed
test_proto_codec_request_encode_write_device_features 0.011s passed
test_proto_codec_response_encode_and_decode_audiology_config 0.001s passed
test_proto_codec_response_encode_and_decode_device_features 0.001s passed
test_proto_codec_response_encode_and_decode_device_identifier 0.001s passed
test_proto_codec_response_encode_and_decode_receiver_params 0.003s passed
test_proto_codec_response_encode_and_decode_sound_config 0.084s passed

Standard output

Verbose: Decoded proto message: Response{transaction=Transaction{transaction_id=1}, result=Result{return_code=RC_OK}, group=Data{sound_config=SoundConfig{mute=false, volume=6}}}
Info: Decoded data: com.nikted.had.bluetooth.data.model.response.ResponsePayload@3e0e1046
Verbose: Start to encode proto message: Request{transaction=Transaction{transaction_id=1}, group=Data{device_features=DeviceFeatures{wdrc_chan_count=4, sound_level_count=6, max_env_count=3, spectral_bins=65}}, command=Command{data_operation=OPERATION_WRITE}}
Verbose: Start to encode proto message: Request{transaction=Transaction{transaction_id=1}, group=Data{audiology_config=AudiologyConfig{env_cfg=[EnvironmentConfig{index=0, enabled=true, anr=Anr{level=ANR_LEVEL_HIGH}, wdrc=Wdrc{data_=[size=90 hex=060900020600370f0d4614074d020a060900020601370f0f4614054b000a060900020602370f0b46140a52060a060900020603370f0746140a641b0a06090002…]}, feedback_cancellation=FC_ON, compressor_speed=CompSpeed{attrel_speed=COMP_ATTREL_SPEED_FAST}}], active_env=1, has_been_fit=true}}, command=Command{data_operation=OPERATION_WRITE}}
Verbose: Decoded proto message: Response{transaction=Transaction{transaction_id=1}, result=Result{return_code=RC_OK}, group=Data{device_features=DeviceFeatures{wdrc_chan_count=4, sound_level_count=4, max_env_count=4, spectral_bins=4}}}
Info: Decoded data: com.nikted.had.bluetooth.data.model.response.ResponsePayload@4c5ae43b
Verbose: Decoded proto message: Response{transaction=Transaction{transaction_id=1}, result=Result{return_code=RC_OK}, group=Data{receiver_params=ReceiverParams{side=LEFT, calibration=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]}}}
Info: Decoded data: com.nikted.had.bluetooth.data.model.response.ResponsePayload@72d6b3ba
Verbose: Start to encode proto message: Request{transaction=Transaction{transaction_id=1}, group=Data{sound_config=SoundConfig{mute=false, volume=6}}, command=Command{data_operation=OPERATION_WRITE}}
Verbose: Decoded proto message: Response{transaction=Transaction{transaction_id=1}, result=Result{return_code=RC_OK}, group=Data{device_id=DeviceIdentifier{sn=12345678}}}
Info: Decoded data: com.nikted.had.bluetooth.data.model.response.ResponsePayload@7de62196
Verbose: Start to encode proto message: Request{transaction=Transaction{transaction_id=1}, group=Data{receiver_params=ReceiverParams{side=RIGHT, calibration=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]}}, command=Command{data_operation=OPERATION_WRITE}}
Verbose: Start to encode proto message: Request{transaction=Transaction{transaction_id=1}, group=Data{device_id=DeviceIdentifier{sn=12345678}}, command=Command{data_operation=OPERATION_WRITE}}
Verbose: Decoded proto message: Response{transaction=Transaction{transaction_id=1}, result=Result{return_code=RC_OK}, group=Data{audiology_config=AudiologyConfig{env_cfg=[EnvironmentConfig{index=0, enabled=true, anr=Anr{level=ANR_LEVEL_OFF}, wdrc=Wdrc{data_=[size=90 hex=060900020600370f0d4614074d020a060900020601370f0f4614054b000a060900020602370f0b46140a52060a060900020603370f0746140a641b0a06090002…]}, feedback_cancellation=FC_OFF, compressor_speed=CompSpeed{attrel_speed=COMP_ATTREL_SPEED_FAST}}], active_env=0, has_been_fit=true, power_on_delay=10}}}
Info: Decoded data: com.nikted.had.bluetooth.data.model.response.ResponsePayload@51bf5add