Lines Matching refs:decoded
165 std::string decoded; in TEST() local
167 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
168 EXPECT_EQ("l", decoded); in TEST()
170 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
171 EXPECT_EQ("i", decoded); in TEST()
173 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
174 EXPECT_EQ("n", decoded); in TEST()
176 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
177 EXPECT_EQ("u", decoded); in TEST()
179 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
180 EXPECT_EQ("x", decoded); in TEST()
182 ASSERT_FALSE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
198 uint32_t decoded; in TEST() local
200 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
201 EXPECT_EQ(3u, decoded); in TEST()
203 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
204 EXPECT_EQ(3u, decoded); in TEST()
206 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
207 EXPECT_EQ(2u, decoded); in TEST()
209 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
210 EXPECT_EQ(1u, decoded); in TEST()
212 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
213 EXPECT_EQ(2u, decoded); in TEST()
215 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
216 EXPECT_EQ(3u, decoded); in TEST()
303 uint64_t decoded = 0; in TEST() local
304 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST()
305 EXPECT_EQ(1002u, decoded); in TEST()