leveldb/util
Victor Costan 8f464e7f68 Remove main() from most tests.
This gives some flexibility to embedders.

Currently, embedders have to build a binary for each test file.

After this CL, embedders can still choose to have a binary for each test
file, by linking each test file with a googletest target that includes
main() (usually "gtest_main"). Embedders can also choose to build a
single binary for almost all test files, and link with a googletest
target that includes main(). The latter is more convenient for projects
that have very few test binaries, like Chromium.

PiperOrigin-RevId: 419470798
2022-01-03 21:05:04 +00:00
..
arena_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
arena.cc Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
arena.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
bloom_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
bloom.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
cache_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
cache.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
coding_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
coding.cc unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
coding.h Remove leveldb::port::kLittleEndian. 2020-04-14 01:10:05 +00:00
comparator.cc Style cleanup. 2019-05-04 17:42:20 -07:00
crc32c_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
crc32c.cc Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
crc32c.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
env_posix_test_helper.h Limit the number of read-only files the POSIX Env will have open. 2017-01-04 09:13:20 -08:00
env_posix_test.cc Fix accidental double std:: qualifiers. 2020-04-30 01:20:50 +00:00
env_posix.cc Add invariant checks to Limiter in Env implementations. 2021-12-22 19:26:31 +00:00
env_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
env_windows_test_helper.h Switch corruption_test to use InMemEnv. 2019-03-20 13:57:03 -07:00
env_windows_test.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
env_windows.cc Add invariant checks to Limiter in Env implementations. 2021-12-22 19:26:31 +00:00
env.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
filter_policy.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
hash_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
hash.cc Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
hash.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
histogram.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
histogram.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
logging_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
logging.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
logging.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
mutexlock.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
no_destructor_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
no_destructor.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
options.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
posix_logger.h Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
random.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
status_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
status.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
testutil.cc Switch testing harness to googletest. 2019-11-21 13:11:40 -08:00
testutil.h Internal cleanup migrating StatusOr. 2020-10-07 21:15:26 +00:00
windows_logger.h Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00