| 80 | } |
| 81 | |
| 82 | TEST_F(TraceTest, TestBasic) { |
| 83 | scoped_refptr<Trace> t(new Trace); |
| 84 | TRACE_TO(t, "hello $0, $1", "world", 12345); |
| 85 | TRACE_TO(t, "goodbye $0, $1", "cruel world", 54321); |
| 86 | |
| 87 | string result = XOutDigits(t->DumpToString(Trace::NO_FLAGS)); |
| 88 | ASSERT_EQ("XXXX XX:XX:XX.XXXXXX trace-test.cc:XX] hello world, XXXXX\n" |
| 89 | "XXXX XX:XX:XX.XXXXXX trace-test.cc:XX] goodbye cruel world, XXXXX\n", |
| 90 | result); |
| 91 | } |
| 92 | |
| 93 | TEST_F(TraceTest, TestAttach) { |
| 94 | scoped_refptr<Trace> traceA(new Trace); |
nothing calls this directly
no test coverage detected