Lines Matching defs:log

76     const char kExpectedVersion[] = "# ninja log vX\n";

79 BuildLog log;
82 EXPECT_TRUE(log.OpenForWrite(kTestFilename, *this, &err));
84 log.Close();
93 EXPECT_TRUE(log.OpenForWrite(kTestFilename, *this, &err));
95 log.Close();
107 fprintf(f, "# ninja log v6\n");
115 BuildLog log;
116 EXPECT_TRUE(log.Load(kTestFilename, &err));
119 BuildLog::LogEntry* e = log.LookupByOutput("out");
168 fprintf(f, "# ninja log v3\n");
173 BuildLog log;
174 EXPECT_TRUE(log.Load(kTestFilename, &err));
180 fprintf(f, "# ninja log v6\n");
186 BuildLog log;
187 EXPECT_TRUE(log.Load(kTestFilename, &err));
190 BuildLog::LogEntry* e = log.LookupByOutput("out with space");
200 // build log on Windows. This shouldn't crash, and the second version header
203 fprintf(f, "# ninja log v6\n");
206 fprintf(f, "# ninja log v6\n");
212 BuildLog log;
213 EXPECT_TRUE(log.Load(kTestFilename, &err));
216 BuildLog::LogEntry* e = log.LookupByOutput("out");
223 e = log.LookupByOutput("out2");
255 fprintf(f, "# ninja log v6\n"
259 BuildLog log;
260 EXPECT_TRUE(log.Load(kTestFilename, &err));
262 BuildLog::LogEntry* e = log.LookupByOutput("out");
268 EXPECT_TRUE(log.Restat(kTestFilename, testDiskInterface, 1, filter2, &err));
270 e = log.LookupByOutput("out");
273 EXPECT_TRUE(log.Restat(kTestFilename, testDiskInterface, 0, NULL, &err));
275 e = log.LookupByOutput("out");
280 // Ninja's build log buffer is currently 256kB. Lines longer than that are
283 fprintf(f, "# ninja log v6\n");
293 BuildLog log;
294 EXPECT_TRUE(log.Load(kTestFilename, &err));
297 BuildLog::LogEntry* e = log.LookupByOutput("out");
300 e = log.LookupByOutput("out2");
312 BuildLog log;
313 log.RecordCommand(state_.edges_[0], 21, 22);
315 ASSERT_EQ(2u, log.entries().size());
316 BuildLog::LogEntry* e1 = log.LookupByOutput("out");
318 BuildLog::LogEntry* e2 = log.LookupByOutput("out.d");
342 // the next time the log is opened.