Lines Matching refs:file
44 FdFile file; in TEST_F() local
45 EXPECT_EQ(-1, file.Fd()); in TEST_F()
46 EXPECT_FALSE(file.IsOpened()); in TEST_F()
47 EXPECT_TRUE(file.GetPath().empty()); in TEST_F()
52 FdFile file; in TEST_F() local
53 ASSERT_TRUE(file.Open(good_path, O_CREAT | O_WRONLY)); in TEST_F()
54 EXPECT_GE(file.Fd(), 0); in TEST_F()
55 EXPECT_TRUE(file.IsOpened()); in TEST_F()
56 EXPECT_EQ(0, file.Flush()); in TEST_F()
57 EXPECT_EQ(0, file.Close()); in TEST_F()
58 EXPECT_EQ(-1, file.Fd()); in TEST_F()
59 EXPECT_FALSE(file.IsOpened()); in TEST_F()
60 EXPECT_TRUE(file.Open(good_path, O_RDONLY)); in TEST_F()
61 EXPECT_GE(file.Fd(), 0); in TEST_F()
62 EXPECT_TRUE(file.IsOpened()); in TEST_F()
64 ASSERT_EQ(file.Close(), 0); in TEST_F()
71 FdFile file; in TEST_F() local
72 ASSERT_TRUE(file.Open(tmp.GetFilename(), O_RDONLY)); in TEST_F()
73 EXPECT_GE(file.Fd(), 0); in TEST_F()
74 EXPECT_TRUE(file.IsOpened()); in TEST_F()
76 EXPECT_FALSE(file.ReadFully(&buffer, 4)); in TEST_F()