Home | History | Annotate | Download | only in src

Lines Matching refs:BlockHashTest

30 class BlockHashTest : public testing::Test {
35 BlockHashTest() {
43 // BlockHashTest is a friend to BlockHash. Expose the protected functions
44 // that will be tested by the children of BlockHashTest.
246 typedef BlockHashTest BlockHashDeathTest;
251 const int BlockHashTest::block_of_first_e;
252 const int BlockHashTest::block_of_second_e;
253 const int BlockHashTest::block_of_third_e;
254 const int BlockHashTest::block_of_fourth_e;
255 const int BlockHashTest::block_of_fifth_e;
256 const int BlockHashTest::block_of_sixth_e;
257 const int BlockHashTest::block_of_y_in_only;
258 const int BlockHashTest::index_of_first_e;
259 const int BlockHashTest::index_of_fourth_e;
260 const int BlockHashTest::index_of_sixth_e;
261 const int BlockHashTest::index_of_y_in_only;
262 const int BlockHashTest::index_of_space_before_fear_is_fear;
263 const int BlockHashTest::index_of_longest_match_ear_is_fear;
264 const int BlockHashTest::index_of_i_in_fear_is_fear;
265 const int BlockHashTest::index_of_space_before_fear_itself;
266 const int BlockHashTest::index_of_space_before_itself;
267 const int BlockHashTest::index_of_ababc;
268 const int BlockHashTest::index_of_second_w_in_what_we;
269 const int BlockHashTest::index_of_second_e_in_what_we_hear;
270 const int BlockHashTest::index_of_f_in_fearsome;
271 const int BlockHashTest::index_of_space_in_eat_itself;
272 const int BlockHashTest::index_of_i_in_itself;
273 const int BlockHashTest::index_of_t_in_use_the;
274 const int BlockHashTest::index_of_o_in_online;
276 const char BlockHashTest::sample_text_without_spaces[] =
279 const char BlockHashTest::search_string_without_spaces[] =
282 const char BlockHashTest::search_string_altered_without_spaces[] =
285 const char BlockHashTest::search_to_end_without_spaces[] =
288 const char BlockHashTest::search_to_beginning_without_spaces[] =
291 const char BlockHashTest::sample_text_many_matches_without_spaces[] =
294 const char BlockHashTest::search_string_many_matches_without_spaces[] =
297 const char* BlockHashTest::sample_text = NULL;
298 const char* BlockHashTest::search_string = NULL;
299 const char* BlockHashTest::search_string_altered = NULL;
300 const char* BlockHashTest::search_to_end_string = NULL;
301 const char* BlockHashTest::search_to_beginning_string = NULL;
302 const char* BlockHashTest::sample_text_many_matches = NULL;
303 const char* BlockHashTest::search_string_many_matches = NULL;
305 const char* BlockHashTest::test_string_y = NULL;
306 const char* BlockHashTest::test_string_e = NULL;
307 const char* BlockHashTest::test_string_unaligned_e = NULL;
308 const char* BlockHashTest::test_string_all_Qs = NULL;
310 uint32_t BlockHashTest::hashed_y = 0;
311 uint32_t BlockHashTest::hashed_e = 0;
312 uint32_t BlockHashTest::hashed_f = 0;
313 uint32_t BlockHashTest::hashed_unaligned_e = 0;
314 uint32_t BlockHashTest::hashed_all_Qs = 0;
316 void BlockHashTest::TestAndPrintTimesForCompareFunctions(
396 TEST_F(BlockHashTest, MaxBytesZeroDoesNothing) {
407 TEST_F(BlockHashTest, MaxBytesNegativeDoesNothing) {
426 TEST_F(BlockHashTest, MaxBytesOneMatch) {
437 TEST_F(BlockHashTest, MaxBytesOneNoMatch) {
448 TEST_F(BlockHashTest, LeftLimitedByMaxBytes) {
459 TEST_F(BlockHashTest, LeftNotLimited) {
474 TEST_F(BlockHashTest, RightLimitedByMaxBytes) {
486 TEST_F(BlockHashTest, RightNotLimited) {
507 TEST_F(BlockHashTest, BlockContentsMatchIsAsFastAsBlockCompareWords) {
543 TEST_F(BlockHashTest, FindFailsBeforeHashing) {
547 TEST_F(BlockHashTest, HashOneFindOne) {
556 TEST_F(BlockHashTest, HashAllFindOne) {
562 TEST_F(BlockHashTest, NonMatchingTextNotFound) {
574 TEST_F(BlockHashTest, UnalignedTextNotFound) {
579 TEST_F(BlockHashTest, FindSixMatches) {
599 TEST_F(BlockHashTest, AddRangeFindThreeMatches) {
621 TEST_F(BlockHashTest, AddRangeWithUnalignedIndices) {
704 TEST_F(BlockHashTest, AddEntireRangeFindSixMatches) {
725 TEST_F(BlockHashTest, ZeroSizeSourceAccepted) {
756 BlockHashTest, UnknownFingerprintReturnsNoMatch) {
760 TEST_F(BlockHashTest, FindBestMatch) {
774 TEST_F(BlockHashTest, FindBestMatchWithStartingOffset) {
792 TEST_F(BlockHashTest, BestMatchReachesEndOfDictionary) {
806 TEST_F(BlockHashTest, BestMatchReachesStartOfDictionary) {
823 TEST_F(BlockHashTest, BestMatchWithManyMatches) {
841 TEST_F(BlockHashTest, HashCollisionFindsNoMatch) {
873 TEST_F(BlockHashTest, WrongFootprintFindsNoMatch) {
890 TEST_F(BlockHashTest, SearchStringFindsTooManyMatches) {