Skip to content
Snippets Groups Projects
Commit 6f2be400 authored by Chris Manton's avatar Chris Manton
Browse files

btif_hh_test: Link with OsiCompatSources

Bug: 311714808
Test: atest net_test_btif_hh

Change-Id: If882fbb7fdec1086431ee8f9f863fe14300fc8e9
parent 8f4ff99a
No related branches found
No related tags found
No related merge requests found
......@@ -579,6 +579,7 @@ cc_test {
srcs: [
":BtaDmSources",
":LibBluetoothSources",
":OsiCompatSources",
":TestCommonCoreInterface",
":TestCommonMainHandler",
":TestCommonMockFunctions",
......
......@@ -67,32 +67,6 @@ extern bool bluetooth_shim_is_gd_stack_started_up;
}
} // namespace test
#if __GLIBC__
size_t strlcpy(char* dst, const char* src, size_t siz) {
char* d = dst;
const char* s = src;
size_t n = siz;
/* Copy as many bytes as will fit */
if (n != 0) {
while (--n != 0) {
if ((*d++ = *s++) == '\0') break;
}
}
/* Not enough room in dst, add NUL and traverse rest of src */
if (n == 0) {
if (siz != 0) *d = '\0'; /* NUL-terminate dst */
while (*s++)
;
}
return (s - src - 1); /* count does not include NUL */
}
pid_t gettid(void) throw() { return syscall(SYS_gettid); }
#endif
namespace {
std::array<uint8_t, 32> data32 = {
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment