Lines Matching refs:Replaces
114 Replacements Replaces; in TEST_F() local
115 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
117 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1), in TEST_F()
119 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
129 std::vector<Replacement> Replaces; in TEST_F() local
130 Replaces.push_back(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
132 Replaces.push_back( in TEST_F()
134 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
141 Replacements Replaces; in TEST_F() local
142 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
144 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
146 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
148 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
157 Replacements Replaces; in TEST_F() local
158 Replaces.insert(Replacement(Context.Sources, Context.getLocation(IDa, 1, 1), in TEST_F()
160 Replaces.insert(Replacement(Context.Sources, SourceLocation(), in TEST_F()
162 Replaces.insert(Replacement(Context.Sources, Context.getLocation(IDz, 1, 1), in TEST_F()
164 EXPECT_FALSE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
170 Replacements Replaces; in TEST() local
171 Replaces.insert(Replacement("", 0, 1, "")); in TEST()
172 Replaces.insert(Replacement("", 4, 3, " ")); in TEST()
174 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 0)); // |int i; in TEST()
175 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 1)); // |nt i; in TEST()
176 EXPECT_EQ(1u, shiftedCodePosition(Replaces, 2)); // i|t i; in TEST()
177 EXPECT_EQ(2u, shiftedCodePosition(Replaces, 3)); // in| i; in TEST()
178 EXPECT_EQ(3u, shiftedCodePosition(Replaces, 4)); // int| i; in TEST()
179 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 5)); // int | i; in TEST()
180 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 6)); // int |i; in TEST()
181 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 7)); // int |; in TEST()
182 EXPECT_EQ(5u, shiftedCodePosition(Replaces, 8)); // int i| in TEST()
189 std::vector<Replacement> Replaces; in TEST() local
190 Replaces.push_back(Replacement("", 0, 1, "")); in TEST()
191 Replaces.push_back(Replacement("", 4, 3, " ")); in TEST()
193 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 0)); // |int i; in TEST()
194 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 1)); // |nt i; in TEST()
195 EXPECT_EQ(1u, shiftedCodePosition(Replaces, 2)); // i|t i; in TEST()
196 EXPECT_EQ(2u, shiftedCodePosition(Replaces, 3)); // in| i; in TEST()
197 EXPECT_EQ(3u, shiftedCodePosition(Replaces, 4)); // int| i; in TEST()
198 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 5)); // int | i; in TEST()
199 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 6)); // int |i; in TEST()
200 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 7)); // int |; in TEST()
201 EXPECT_EQ(5u, shiftedCodePosition(Replaces, 8)); // int i| in TEST()
205 Replacements Replaces; in TEST() local
206 Replaces.insert(Replacement("", 4, 0, "\"\n\"")); in TEST()
208 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 4)); // "123|5678" in TEST()
209 EXPECT_EQ(8u, shiftedCodePosition(Replaces, 5)); // "1234|678" in TEST()
265 Replacements Replaces; in TEST_F() local
266 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
268 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()