leveldb/db
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
..
autocompact_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
builder.cc Merge pull request #819 from wzk784533:master 2020-07-13 19:14:04 +00:00
builder.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
c_test.c unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
c.cc IWYU fixes in db/c.cc. 2021-01-25 17:18:22 +00:00
corruption_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
db_impl.cc Sync MANIFEST before closing in db_impl when creating a new DB. 2021-01-12 21:58:08 +00:00
db_impl.h Add Env::Remove{File,Dir} which obsolete Env::Delete{File,Dir}. 2020-01-09 09:18:14 -08:00
db_iter.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
db_iter.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
db_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
dbformat_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
dbformat.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
dbformat.h unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
dumpfile.cc Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
fault_injection_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
filename_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
filename.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
filename.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
leveldbutil.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
log_format.h Convert documentation to markdown. 2017-03-01 09:42:25 -08:00
log_reader.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
log_reader.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
log_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
log_writer.cc Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
log_writer.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
memtable.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
memtable.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
recovery_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
repair.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
skiplist_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
skiplist.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
snapshot.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
table_cache.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
table_cache.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
version_edit_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
version_edit.cc Add Env::Remove{File,Dir} which obsolete Env::Delete{File,Dir}. 2020-01-09 09:18:14 -08:00
version_edit.h Add Env::Remove{File,Dir} which obsolete Env::Delete{File,Dir}. 2020-01-09 09:18:14 -08:00
version_set_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
version_set.cc Fix compactions that could end up breaking a run of the same user 2021-05-20 19:13:04 +00:00
version_set.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
write_batch_internal.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
write_batch_test.cc Remove main() from most tests. 2022-01-03 21:05:04 +00:00
write_batch.cc Style cleanup. 2019-05-04 17:42:20 -07:00