diff options
author | Tom Cherry <tomcherry@google.com> | 2020-05-15 11:39:58 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2020-05-18 15:54:06 -0700 |
commit | a515197266ffe8a1a1e2c28d8038e080a8b27251 (patch) | |
tree | 19617421aaae62511b1ac937e6d7bd7068d4697e /logd/LogBufferTest.cpp | |
parent | 43f3f761f0cdefe835ce5eb5989a5dde81f5096e (diff) |
logd: build liblogd and its test on host
Plus the various fixups needed for building on host.
Test: run these tests on host
Change-Id: I85e6c989068f80c5a80eaf5ad149fdad0a045c08
Diffstat (limited to 'logd/LogBufferTest.cpp')
-rw-r--r-- | logd/LogBufferTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/logd/LogBufferTest.cpp b/logd/LogBufferTest.cpp index 806fd1626..cc3cb76a6 100644 --- a/logd/LogBufferTest.cpp +++ b/logd/LogBufferTest.cpp @@ -36,6 +36,16 @@ using android::base::Join; using android::base::StringPrintf; +#ifndef __ANDROID__ +unsigned long __android_logger_get_buffer_size(log_id_t) { + return 1024 * 1024; +} + +bool __android_logger_valid_buffer_size(unsigned long) { + return true; +} +#endif + void android::prdebug(const char* fmt, ...) { va_list ap; va_start(ap, fmt); |