-
- Downloads
Add Start/Stop/Reset to CapturedStdFd.
Move the fd() function to be private since it should not have been exposed in the first place. Fix the way logging_test uses CapturedXXX. Adding this because the new isolated testing doesn't print errors to stderr so the ASSERT_ EXPECT_ messages can get swallowed. Also, it's easier to reuse a CapturedXXX object in a test with these functions. Test: New unit tests pass. Change-Id: I38b113fc184146ce434802f80a9b7997fa83e78a
Showing
- base/include/android-base/test_utils.h 6 additions, 4 deletionsbase/include/android-base/test_utils.h
- base/logging_test.cpp 98 additions, 91 deletionsbase/logging_test.cpp
- base/test_utils.cpp 17 additions, 6 deletionsbase/test_utils.cpp
- base/test_utils_test.cpp 40 additions, 0 deletionsbase/test_utils_test.cpp
Loading
Please register or sign in to comment