Lines Matching defs:CHECK
15 // CHECK dies with a fatal error if condition is not true. It is *not*
16 // controlled by NDEBUG, so the check will be executed regardless of
18 // CHECK(fp->Write(x) == 4)
19 #define CHECK(condition) do { \
21 fprintf(stderr, "%s:%d: Check failed: %s\n", \
45 CHECK(map.size() == 3);
48 CHECK(iter->second == 1);
50 CHECK(iter->second == 2);
52 CHECK(iter->second == 0);
54 CHECK(iter == map.end());
57 CHECK(new_iter == map.end());
60 CHECK(new_iter != map.end());
63 CHECK(map.size() == 2);
66 CHECK(iter->second == 2);
68 CHECK(iter->second == 0);
70 CHECK(iter == map.end());
75 CHECK( (StringPiece((x)) op StringPiece((y)))); \
76 CHECK( (StringPiece((x)).compare(StringPiece((y))) op 0))
79 CHECK(!(StringPiece((x)) op StringPiece((y)))); \
80 CHECK(!(StringPiece((x)).compare(StringPiece((y))) op 0))