summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libbase: switch to #pragma once.Elliott Hughes2018-06-261-4/+1
| | | | | | Bug: N/A Test: builds Change-Id: I125498ac4257ac4e901c6f2a5f1bfac1432d859d
* Add StdioLogger for command-line tools.Elliott Hughes2018-05-231-7/+19
| | | | | | Bug: N/A Test: ran tests Change-Id: If366a4ea25aea1becdd3e443eba225e9bd52ebba
* base: Add TemporaryFile::DoNotRemove().Yabin Cui2018-03-081-0/+4
| | | | | | Bug: http://b/73127105 Test: none. Change-Id: I563c12bfb629ddd630568dda4817fb10cc9940a8
* base: extract {ASSERT,EXPECT}_MATCH helpers from debuggerd_test.Josh Gao2017-12-191-0/+29
| | | | | | | | Add some helper macros that perform regex string matching to <android-base/test_utils.h>. Test: libbase_test32/64 on host Change-Id: I1b0f03dc73f8b4fdfb8ac6c75d59ef421e0e9640
* base: allow creating tempfile in a custom temporary dir.Yabin Cui2017-12-061-0/+1
| | | | | | Bug: http://b/70232908 Test: none. Change-Id: I24b894793f6725186b3582a91db083427e51aa5a
* Add the Release function for TemporaryFilesTianjie Xu2017-09-111-0/+4
| | | | | | | | | | Some tests may create a File* by calling fdopen() on the temp file's fd. We should release the ownership of fd in this case to avoid the double close. Bug: 65430057 Test: libbase unit tests pass Change-Id: I54fcce2029f9a574f53afdbdda737ee58620c73a
* Move CapturedStderr to test_util libraryWei Wang2016-10-221-0/+17
| | | | | | Bug: 32181382 Test: run /data/nativetest(64)/binderTextOutputTest Change-Id: Ifb2e1f6af2c3f57b5cbed7dde65efb31253c52a2
* Fix <android-base/*.h> header guards.Elliott Hughes2016-03-231-3/+3
| | | | | | | | | I've been meaning to do this for a while, and it came up on the bug below that there have been conflicts with similar-named files in <base/*.h>, so let's rule out one possible explanation. Bug: http://b/27804373 Change-Id: I69e5d52b6260c573c308513420aee0e281426bd4
* Rename base/ to android-base/.Elliott Hughes2015-12-071-0/+51
Bug: http://b/26023797 Change-Id: Ie6c63bf86bed05faab87d290de6f34d9af3532a8