Lines Matching defs:out
71 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) {
73 new W(brillo::make_unique_ptr(new MemoryExtentWriter(out))));
86 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0;
87 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0;
95 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const {
96 return BzipCompress(in, out);
98 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const {
99 return DecompressWithWriter<BzipExtentWriter>(in, out);
108 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const {
109 return XzCompress(in, out);
111 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const {
112 return DecompressWithWriter<XzExtentWriter>(in, out);
134 brillo::Blob out;
135 EXPECT_TRUE(this->ZipCompress(in, &out));
136 EXPECT_LT(out.size(), in.size());
137 EXPECT_GT(out.size(), 0U);
139 EXPECT_TRUE(this->ZipDecompress(out, &decompressed));
146 brillo::Blob out;
147 EXPECT_TRUE(this->ZipCompress(in, &out));
148 EXPECT_GT(out.size(), in.size());
150 EXPECT_TRUE(this->ZipDecompress(out, &decompressed));
157 brillo::Blob out;
158 EXPECT_FALSE(this->ZipDecompress(in, &out));
163 brillo::Blob out;
164 EXPECT_TRUE(this->ZipDecompress(in, &out));
165 EXPECT_EQ(0U, out.size());
167 EXPECT_TRUE(this->ZipCompress(in, &out));
168 EXPECT_EQ(0U, out.size());