Home | History | Annotate | Download | only in src

Lines Matching refs:coder_

33     EXPECT_TRUE(coder_.Init(0));
34 coder_.WriteHeader(&output_string_, 0);
41 JSONCodeTableWriter coder_;
45 EXPECT_EQ(0U, coder_.target_length());
46 coder_.FinishEncoding(&output_string_);
48 EXPECT_EQ(0U, coder_.target_length());
52 EXPECT_EQ(0U, coder_.target_length());
53 coder_.Output(&output_string_);
54 coder_.FinishEncoding(&output_string_);
56 EXPECT_EQ(0U, coder_.target_length());
60 coder_.Add("123", 3);
61 EXPECT_EQ(3U, coder_.target_length());
62 coder_.Output(&output_string_);
63 EXPECT_EQ(0U, coder_.target_length());
64 coder_.FinishEncoding(&output_string_);
69 coder_.Copy(3, 5);
70 EXPECT_EQ(5U, coder_.target_length());
71 coder_.Output(&output_string_);
72 EXPECT_EQ(0U, coder_.target_length());
73 coder_.FinishEncoding(&output_string_);
78 coder_.Run(3, 'a');
79 EXPECT_EQ(3U, coder_.target_length());
80 coder_.Output(&output_string_);
81 EXPECT_EQ(0U, coder_.target_length());
82 coder_.FinishEncoding(&output_string_);
87 coder_.Add("\n\b\r", 3);
88 EXPECT_EQ(3U, coder_.target_length());
89 coder_.Output(&output_string_);
90 EXPECT_EQ(0U, coder_.target_length());
91 coder_.FinishEncoding(&output_string_);
96 coder_.Add("abc", 3);
97 coder_.Copy(3, 5);
98 coder_.Add("defghij", 7);
99 EXPECT_EQ(15U, coder_.target_length());
100 coder_.Output(&output_string_);
101 EXPECT_EQ(0U, coder_.target_length());
102 coder_.FinishEncoding(&output_string_);
107 coder_.Add("abc", 3);
108 EXPECT_EQ(3U, coder_.target_length());
109 coder_.Output(&output_string_);
110 EXPECT_EQ(0U, coder_.target_length());
112 coder_.Add("def", 3);
113 EXPECT_EQ(3U, coder_.target_length());
114 coder_.Output(&output_string_);
115 EXPECT_EQ(0U, coder_.target_length());
116 coder_.FinishEncoding(&output_string_);
121 coder_.Add("abc", 3);
122 EXPECT_EQ(3U, coder_.target_length());
123 coder_.Output(&output_string_);
124 EXPECT_EQ(0U, coder_.target_length());
125 coder_.FinishEncoding(&output_string_);
129 coder_.Init(0);
130 coder_.Add("def", 3);
131 EXPECT_EQ(3U, coder_.target_length());
132 coder_.Output(&output_string2);
133 EXPECT_EQ(0U, coder_.target_length());
134 coder_.FinishEncoding(&output_string2);