| 728 | class NodeEmitterTest : public ::testing::Test { |
| 729 | protected: |
| 730 | void ExpectOutput(const std::string& output, const Node& node) { |
| 731 | Emitter emitter; |
| 732 | emitter << node; |
| 733 | ASSERT_TRUE(emitter.good()); |
| 734 | EXPECT_EQ(output, emitter.c_str()); |
| 735 | } |
| 736 | |
| 737 | void ExpectAnyOutput(const Node& node, const std::string& output1, |
| 738 | const std::string& output2) { |