| 31 | namespace { |
| 32 | |
| 33 | bool ContainsError(const ErrorContainer &errors, |
| 34 | ErrorDefinition::ErrorType etype) { |
| 35 | return std::count_if( |
| 36 | errors.getErrors().begin(), errors.getErrors().end(), |
| 37 | [etype](const Error &e) { return e.getType() == etype; }); |
| 38 | } |
| 39 | |
| 40 | TEST(PreprocessTest, PreprocessWithoutPPTokens) { |
| 41 | PreprocessHarness harness; |