summaryrefslogtreecommitdiffstats
path: root/libutils/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.Elliott Hughes2015-04-021-1/+0
| | | | Change-Id: I720b8ef1050da45a7833adef8219b6acb2cf3a38
* Revert "Revert "Create libbase.""Dan Albert2015-03-163-158/+0
| | | | This reverts commit a7870d88167f619e758b5bcd15b410d16da7c16b.
* Revert "Create libbase."Nicolas Geoffray2015-03-163-0/+158
| | | | | | | | Breaks internal master. This reverts commit 98ff77204cef9bb8f0f27420833233622060a09e. Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
* Create libbase.Dan Albert2015-03-143-158/+0
| | | | | | | Move StringPrintf and the string based file I/O from libutils to libbase. Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
* Fix the WriteStringToFile overload that takes mode/owner/group.Elliott Hughes2015-02-171-0/+14
| | | | | | | | | | The actual bug is == instead of !=, but the real cause was me trying to be too clever. This patch switches to much simpler code, and -- since the intended use of this code is security anyway -- adds logging if anything goes wrong. Bug: 19361774 Change-Id: If2af07d31a5002f9010b838247b691f6b28bdfb1
* Clean up reading and writing in init.Elliott Hughes2015-02-061-2/+49
| | | | | | | | | | | | | This isn't particularly useful in and of itself, but it does introduce the first (trivial) unit test, improves the documentation (including details about how to debug init crashes), and made me aware of how unpleasant the existing parser is. I also fixed a bug in passing --- unless you thought the "peboot" and "pm" commands were features... Bug: 19217569 Change-Id: I6ab76129a543ce3ed3dab52ef2c638009874c3de
* Add Google-style StringPrintf.Elliott Hughes2015-02-032-0/+59
| | | | Change-Id: If333c28b8ed047346a2dd85e591c4bedbab874cc
* Add Google-style ReadFileToString and WriteStringToFile.Elliott Hughes2015-02-032-0/+38
| | | | | Bug: 19217569 Change-Id: I64789d3fa6777ee30a324cdf00fdc275c1230e1b
* am 7a92d20e: Merge "Clean up some test makefiles."Dan Albert2014-11-053-24/+47
|\ | | | | | | | | * commit '7a92d20ec845c07472eaea7cf14fd0e69df836ef': Clean up some test makefiles.
| * Clean up some test makefiles.Dan Albert2014-11-043-24/+47
| | | | | | | | | | | | | | Needed for building with libc++ as the default STL. Bug: 15193147 Change-Id: I8b462bd288fbea7e0ab182f85ffcbf438afb6aa4
* | am 522c1d34: am e18ed89e: Merge "Remove makefile cruft."Dan Albert2014-09-121-6/+0
|\ \ | |/ | | | | | | * commit '522c1d340b6c1742d3e47aad27b974e43fad4bc2': Remove makefile cruft.
| * Remove makefile cruft.Dan Albert2014-09-121-6/+0
| | | | | | | | | | | | Don't manually include stlport, and don't use private bionic headers. Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
* | am bf0ed824: am 60ca7a22: Merge "libutils: turn on -Werror"Mark Salyzyn2014-06-041-14/+14
|\ \ | |/ | | | | | | * commit 'bf0ed82485e0166dd5f5c9415026c2dc3fd2ae4b': libutils: turn on -Werror
| * libutils: turn on -WerrorMark Salyzyn2014-06-021-14/+14
| | | | | | | | | | | | | | | | | | - Deal with some -Wunused issues - Override PRI macros (windows) - Revert use of PRI macros on off64_t (linux) - Deal with a gnu++11 complaince issue Change-Id: Ie66751293bd84477a5a6dfd8a57e700a16e36964
* | am e8f90ca6: am 570cd46d: Merge "Revert "Move libutils to libc++""Dan Albert2014-05-301-0/+5
|\ \ | |/ | | | | | | * commit 'e8f90ca60d65f5a0542b77f8f517c4fb80da2e52': Revert "Move libutils to libc++"
| * Revert "Move libutils to libc++"Dan Albert2014-05-301-0/+5
| | | | | | | | | | | | | | | | Causes issues in the unbundled branches. This reverts commit dc133729b0bc983c6ecfecdb06ac8b433ea31350. Change-Id: I9185ce9ea9e0ea631f0bfe016edf38c6830b288a
* | am 36f536fc: am 9f69e028: Merge "Move libutils to libc++"Dan Albert2014-05-301-5/+0
|\ \ | |/ | | | | | | * commit '36f536fc7b88fe21a974bce6fed565bc622b5bc2': Move libutils to libc++
| * Move libutils to libc++Dan Albert2014-05-291-5/+0
| | | | | | | | | | Bug: 15193147 Change-Id: Ib4b1835e77279db905e098abc7c9bf8d27d66b57
* | am 4f362e43: am 835526fd: Merge "Cleanup: warning fixit."Sasha Levitskiy2014-04-122-2/+2
|\ \ | |/ | | | | | | * commit '4f362e438c6ee5688c4f2f444203ed7acffa566b': Cleanup: warning fixit.
| * Cleanup: warning fixit.Sasha Levitskiy2014-04-112-2/+2
| | | | | | | | | | | | | | bootable/recovery has a dependent commit: I9adb470b04e4301989d128c9c3097b21b4dea431 Change-Id: Icf23e659265d71d5226d527c2b40cfbc132320ee Signed-off-by: Sasha Levitskiy <sanek@google.com>
* | Add BitSet64. DO NOT MERGEMichael Wright2014-03-241-4/+187
|/ | | | Change-Id: Idf3e21dfaa9f90f4dcb1b4d41eed3891dda99561
* Make libutils Looper independent of frameworks/nativeBrian Carlstrom2013-12-181-79/+79
| | | | Change-Id: I1dacca10a3cd7601abc3451b69ed761bf71c38fe
* move libs/utils to libutilsAlex Ray2013-08-0210-0/+2447
Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d