Lines Matching refs:kTestFilename
30 const char kTestFilename[] = "DepsLogTest-tempfile"; variable
35 unlink(kTestFilename); in SetUp()
38 unlink(kTestFilename); in TearDown()
46 EXPECT_TRUE(log1.OpenForWrite(kTestFilename, &err)); in TEST_F()
72 EXPECT_TRUE(log2.Load(kTestFilename, &state2, &err)); in TEST_F()
98 EXPECT_TRUE(log1.OpenForWrite(kTestFilename, &err)); in TEST_F()
118 EXPECT_TRUE(log2.Load(kTestFilename, &state2, &err)); in TEST_F()
133 EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
143 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
153 EXPECT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
155 EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
165 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
187 ASSERT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
203 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
215 ASSERT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
217 ASSERT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
226 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
240 ASSERT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
257 ASSERT_TRUE(log.Recompact(kTestFilename, &err)); in TEST_F()
277 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
289 ASSERT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
306 ASSERT_TRUE(log.Recompact(kTestFilename, &err)); in TEST_F()
321 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
338 FILE* deps_log = fopen(kTestFilename, "wb"); in TEST_F()
348 ASSERT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
360 EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
378 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
387 ASSERT_TRUE(Truncate(kTestFilename, size, &err)); in TEST_F()
391 EXPECT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
419 EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
438 ASSERT_EQ(0, stat(kTestFilename, &st)); in TEST_F()
440 ASSERT_TRUE(Truncate(kTestFilename, st.st_size - 2, &err)); in TEST_F()
448 EXPECT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
455 EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()
473 EXPECT_TRUE(log.Load(kTestFilename, &state, &err)); in TEST_F()
485 EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); in TEST_F()