Lines Matching refs:in
69 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { in DecompressWithWriter() argument
70 out->reserve(in.size()); in DecompressWithWriter()
75 ok = writer->Write(in.data(), in.size()) && ok; in DecompressWithWriter()
84 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0;
85 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0;
93 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress() argument
94 return BzipCompress(in, out); in ZipCompress()
96 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress() argument
97 return DecompressWithWriter<BzipExtentWriter>(in, out); in ZipDecompress()
106 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress() argument
107 return XzCompress(in, out); in ZipCompress()
109 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress() argument
110 return DecompressWithWriter<XzExtentWriter>(in, out); in ZipDecompress()
126 brillo::Blob in(in_str.begin(), in_str.end()); in TYPED_TEST() local
128 EXPECT_TRUE(this->ZipCompress(in, &out)); in TYPED_TEST()
129 EXPECT_LT(out.size(), in.size()); in TYPED_TEST()
133 EXPECT_EQ(in.size(), decompressed.size()); in TYPED_TEST()
134 EXPECT_EQ(0, memcmp(in.data(), decompressed.data(), in.size())); in TYPED_TEST()
138 brillo::Blob in(std::begin(kRandomString), std::end(kRandomString)); in TYPED_TEST() local
140 EXPECT_TRUE(this->ZipCompress(in, &out)); in TYPED_TEST()
141 EXPECT_GT(out.size(), in.size()); in TYPED_TEST()
144 EXPECT_EQ(in.size(), decompressed.size()); in TYPED_TEST()
145 EXPECT_EQ(in, decompressed); in TYPED_TEST()
149 brillo::Blob in(std::begin(kRandomString), std::end(kRandomString)); in TYPED_TEST() local
151 EXPECT_FALSE(this->ZipDecompress(in, &out)); in TYPED_TEST()
155 brillo::Blob in; in TYPED_TEST() local
157 EXPECT_TRUE(this->ZipDecompress(in, &out)); in TYPED_TEST()
160 EXPECT_TRUE(this->ZipCompress(in, &out)); in TYPED_TEST()
166 brillo::Blob in; in TYPED_TEST() local
167 ASSERT_TRUE(utils::ReadFile(path, &in)); in TYPED_TEST()
169 EXPECT_TRUE(this->ZipCompress(in, &out)); in TYPED_TEST()
170 EXPECT_LT(out.size(), in.size()); in TYPED_TEST()
174 EXPECT_EQ(in.size(), decompressed.size()); in TYPED_TEST()
175 EXPECT_EQ(0, memcmp(in.data(), decompressed.data(), in.size())); in TYPED_TEST()