Lines Matching refs:msg
178 String8 msg;
182 msg += String8::format("error reading pixel: %#x", err);
184 msg += String8::format(", %#x", err);
186 return ::testing::AssertionFailure(::testing::Message(msg.string()));
189 msg += String8::format("r(%d isn't %d)", pixel[0], r);
192 if (!msg.isEmpty()) {
193 msg += " ";
195 msg += String8::format("g(%d isn't %d)", pixel[1], g);
198 if (!msg.isEmpty()) {
199 msg += " ";
201 msg += String8::format("b(%d isn't %d)", pixel[2], b);
204 if (!msg.isEmpty()) {
205 msg += " ";
207 msg += String8::format("a(%d isn't %d)", pixel[3], a);
209 if (!msg.isEmpty()) {
210 return ::testing::AssertionFailure(::testing::Message(msg.string()));
218 String8 msg;
221 msg += String8::format("left(%d isn't %d)", r1.left, r2.left);
224 if (!msg.isEmpty()) {
225 msg += " ";
227 msg += String8::format("top(%d isn't %d)", r1.top, r2.top);
230 if (!msg.isEmpty()) {
231 msg += " ";
233 msg += String8::format("right(%d isn't %d)", r1.right, r2.right);
236 if (!msg.isEmpty()) {
237 msg += " ";
239 msg += String8::format("bottom(%d isn't %d)", r1.bottom, r2.bottom);
241 if (!msg.isEmpty()) {
242 msg += String8::format(" R1: [%d %d %d %d] R2: [%d %d %d %d]",
245 fprintf(stderr, "assertRectEq: %s\n", msg.string());
246 return ::testing::AssertionFailure(::testing::Message(msg.string()));