summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-30 20:25:09 +0000
committersnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-30 20:25:09 +0000
commit61aaecdbb30c935291656df0fae4d5bef3fa85f7 (patch)
treeb9fad71e444bc5b294a346d613144436a336ea1f
parentcbb82ad7d0864606be7b7517fbb5b4f9e389443e (diff)
downloadsnappy-61aaecdbb30c935291656df0fae4d5bef3fa85f7.tar.gz
Renamed "namespace zippy" to "namespace snappy" to reduce
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
-rw-r--r--snappy_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/snappy_unittest.cc b/snappy_unittest.cc
index 2aad0b1..e2bcf28 100644
--- a/snappy_unittest.cc
+++ b/snappy_unittest.cc
@@ -220,8 +220,8 @@ static bool Compress(const char* input, size_t input_size, CompressorType comp,
case SNAPPY: {
size_t destlen;
snappy::RawCompress(input, input_size,
- string_as_array(compressed),
- &destlen);
+ string_as_array(compressed),
+ &destlen);
CHECK_LE(destlen, snappy::MaxCompressedLength(input_size));
compressed->resize(destlen);
break;
@@ -315,7 +315,7 @@ static bool Uncompress(const string& compressed, CompressorType comp,
case SNAPPY: {
snappy::RawUncompress(compressed.data(), compressed.size(),
- string_as_array(output));
+ string_as_array(output));
break;
}
@@ -713,8 +713,8 @@ TEST(Snappy, FourByteOffset) {
static bool CheckUncompressedLength(const string& compressed,
size_t* ulength) {
const bool result1 = snappy::GetUncompressedLength(compressed.data(),
- compressed.size(),
- ulength);
+ compressed.size(),
+ ulength);
snappy::ByteArraySource source(compressed.data(), compressed.size());
uint32 length;
@@ -730,7 +730,7 @@ TEST(SnappyCorruption, TruncatedVarint) {
CHECK(!CheckUncompressedLength(compressed, &ulength));
CHECK(!snappy::IsValidCompressedBuffer(compressed.data(), compressed.size()));
CHECK(!snappy::Uncompress(compressed.data(), compressed.size(),
- &uncompressed));
+ &uncompressed));
}
TEST(SnappyCorruption, UnterminatedVarint) {
@@ -745,7 +745,7 @@ TEST(SnappyCorruption, UnterminatedVarint) {
CHECK(!CheckUncompressedLength(compressed, &ulength));
CHECK(!snappy::IsValidCompressedBuffer(compressed.data(), compressed.size()));
CHECK(!snappy::Uncompress(compressed.data(), compressed.size(),
- &uncompressed));
+ &uncompressed));
}
TEST(Snappy, ReadPastEndOfBuffer) {