OSDN Git Service

net_test_bluetooth: Improve set/get name logic
authorAjay Panicker <apanicke@google.com>
Tue, 22 Dec 2015 21:09:48 +0000 (13:09 -0800)
committerAjay Panicker <apanicke@google.com>
Wed, 23 Dec 2015 02:17:57 +0000 (18:17 -0800)
commit4bb7653894eeb12498f7c1b0f6fe54d37515eedf
tree19d3e6abb2a1b9db17f1eb06f964d456463d5242
parentd0aa6cc53abaf122a2426c20691ccfa025ca7369
net_test_bluetooth: Improve set/get name logic

Without this CL semaphore_wait would instantly return due to the fact
that enabling the adapter would cause the properties callback to post
immediatly. Also prevented the test from returning a false positive if the
original device name was the same as the test name.

Change-Id: I987efcb9a5ef58209d37d2fc21f3c149fb3e556c
test/suite/adapter/adapter_unittest.cpp
test/suite/adapter/bluetooth_test.cpp
test/suite/adapter/bluetooth_test.h