summaryrefslogtreecommitdiff
path: root/snappy_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix public issue 82: Stop distributing benchmark data files that havesnappy.mirrorbot@gmail.com2014-02-191-13/+3
| | | | | | | | | | | | | unclear or unsuitable licensing. In general, we replace the files we can with liberally licensed data, and remove all the others (in particular all the parts of the Canterbury corpus that are not clearly in the public domain). The replacements do not always have the exact same characteristics as the original ones, but they are more than good enough to be useful for benchmarking. git-svn-id: http://snappy.googlecode.com/svn/trunk@83 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Add support for uncompressing to iovecs (scatter I/O).snappy.mirrorbot@gmail.com2013-06-131-2/+203
| | | | | | | | | | | | | Windows does not have struct iovec defined anywhere, so we define our own version that's equal to what UNIX typically has. The bulk of this patch was contributed by Mohit Aron. R=jeff git-svn-id: http://snappy.googlecode.com/svn/trunk@76 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Supports truncated test data in zippy benchmark.snappy.mirrorbot@gmail.com2013-04-091-34/+41
| | | | | | | R=sesse git-svn-id: http://snappy.googlecode.com/svn/trunk@74 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Adjust the Snappy open-source distribution for the changes in Google'ssnappy.mirrorbot@gmail.com2013-01-061-7/+9
| | | | | | | | | | internal file API. R=sanjay git-svn-id: http://snappy.googlecode.com/svn/trunk@70 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Lower the size allocated in the "corrupted input" unit test from 256 MBsnappy.mirrorbot@gmail.com2012-02-111-6/+8
| | | | | | | | | | | | | to 2 MB. This fixes issues with running the unit test on platforms with little RAM (e.g. some ARM boards). Also, reactivate the 2 MB test for 64-bit platforms; there's no good reason why it shouldn't be. R=sanjay git-svn-id: http://snappy.googlecode.com/svn/trunk@58 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Fix public issue r57: Fix most warnings with -Wall, mostly signed/unsignedsnappy.mirrorbot@gmail.com2012-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | warnings. There are still some in the unit test, but the main .cc file should be clean. We haven't enabled -Wall for the default build, since the unit test is still not clean. This also fixes a real bug in the open-source implementation of ReadFileToStringOrDie(); it would not detect errors correctly. I had to go through some pains to avoid performance loss as the types were changed; I think there might still be some with 32-bit if and only if LFS is enabled (ie., size_t is 64-bit), but for regular 32-bit and 64-bit I can't see any losses, and I've diffed the generated GCC assembler between the old and new code without seeing any significant choices. If anything, it's ever so slightly faster. This may or may not enable compression of very large blocks (>2^32 bytes) when size_t is 64-bit, but I haven't checked, and it is still not a supported case. git-svn-id: http://snappy.googlecode.com/svn/trunk@56 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Partially fix public issue 50: Remove an extra comma from the end of somesnappy.mirrorbot@gmail.com2011-08-101-2/+2
| | | | | | | | | enum declarations, as it seems the Sun compiler does not like it. Based on patch by Travis Vitek. git-svn-id: http://snappy.googlecode.com/svn/trunk@48 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Fix public issue #47: Small comment cleanups in the unit test.snappy.mirrorbot@gmail.com2011-08-101-2/+2
| | | | | | | | | Originally based on a patch by Patrick Pelletier. R=sanjay git-svn-id: http://snappy.googlecode.com/svn/trunk@46 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Fix public issue #26: Take memory allocation and reallocation entirely out ↵snappy.mirrorbot@gmail.com2011-03-301-23/+83
| | | | | | | | | | | | | | | | | | of the Measure() loop. This gives all algorithms a small speed boost, except Snappy which already didn't do reallocation (so the measurements were slightly biased in its favor). R=csilvers DELTA=92 (69 added, 9 deleted, 14 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1151 git-svn-id: http://snappy.googlecode.com/svn/trunk@24 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Renamed "namespace zippy" to "namespace snappy" to reducesnappy.mirrorbot@gmail.com2011-03-301-7/+7
| | | | | | | | | | | | | | | | | | | | | the differences from the opensource code. Will make it easier in the future to mix-and-match third-party code that uses snappy with google code. Currently, csearch shows that the only external user of "namespace zippy" is some bigtable code that accesses a TEST variable, which is temporarily kept in the zippy namespace. R=sesse DELTA=123 (18 added, 3 deleted, 102 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1150 git-svn-id: http://snappy.googlecode.com/svn/trunk@23 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Change on 2011-03-25 19:18:00-07:00 by sessesnappy.mirrorbot@gmail.com2011-03-261-9/+24
| | | | | | | | | | | | | | | | | | | | | | Replace the Apache 2.0 license header by the BSD-type license header; somehow a lot of the files were missed in the last round. R=dannyb,csilvers DELTA=147 (74 added, 2 deleted, 71 changed) Change on 2011-03-25 19:25:07-07:00 by sesse Unbreak the build; the relicensing removed a bit too much (only comments were intended, but I also accidentially removed some of the top lines of the actual source). Revision created by MOE tool push_codebase. MOE_MIGRATION=1072 git-svn-id: http://snappy.googlecode.com/svn/trunk@21 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Make the unit test work on systems without mmap(). This is required for,snappy.mirrorbot@gmail.com2011-03-241-4/+9
| | | | | | | | | | | | | | | | | | among others, Windows support. For Windows in specific, we could have used CreateFileMapping/MapViewOfFile, but this should at least get us a bit closer to compiling, and is of course also relevant for embedded systems with no MMU. (Part 2/2) R=csilvers DELTA=15 (12 added, 3 deleted, 0 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1032 git-svn-id: http://snappy.googlecode.com/svn/trunk@16 03e5f5b5-db94-4691-08a0-1a8bf15f6143
* Revision created by MOE tool push_codebase.snappy.mirrorbot@gmail.com2011-03-181-0/+1073
MOE_MIGRATION= git-svn-id: http://snappy.googlecode.com/svn/trunk@2 03e5f5b5-db94-4691-08a0-1a8bf15f6143