Igor Canadi abac3d6476 TableMock + framework for mock classes
Summary:
This diff replaces BlockBasedTable in flush_job_test with TableMock, making it depend on less things and making it closer to an unit test than integration test.

It also introduces a framework to compile mock classes -- Any file named *mock.cc will not be compiled into the build. It will only get compiled into the tests. What way we can mock out most other classes, Version, VersionSet, DBImpl, etc.

Test Plan: flush_job_test

Reviewers: ljin, rven, yhchiang, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D27681
2014-10-28 17:52:32 -07:00
..
2014-09-02 11:49:38 -07:00
2014-09-04 09:10:13 +08:00
2014-05-15 14:09:03 -07:00
2014-05-15 14:09:03 -07:00
2014-09-17 16:45:58 -07:00
2014-09-17 16:45:58 -07:00
2014-09-17 15:08:50 -07:00
2014-09-22 15:19:20 -07:00
2014-04-09 21:17:14 -07:00
2014-09-08 22:24:40 -07:00
2014-09-17 15:08:50 -07:00
2014-09-04 16:18:36 -07:00
2014-09-06 23:21:26 +08:00
2014-02-03 00:30:43 -08:00
2014-10-27 12:10:13 -07:00