Home | History | Annotate | Download | only in unix_file

Lines Matching defs:file

5  * you may not use this file except in compliance with the License.
43 FdFile file;
44 EXPECT_EQ(-1, file.Fd());
45 EXPECT_FALSE(file.IsOpened());
46 EXPECT_TRUE(file.GetPath().empty());
50 std::string good_path(GetTmpPath("some-file.txt"));
51 FdFile file;
52 ASSERT_TRUE(file.Open(good_path, O_CREAT | O_WRONLY));
53 EXPECT_GE(file.Fd(), 0);
54 EXPECT_TRUE(file.IsOpened());
55 EXPECT_EQ(0, file.Close());
56 EXPECT_EQ(-1, file.Fd());
57 EXPECT_FALSE(file.IsOpened());
58 EXPECT_TRUE(file.Open(good_path, O_RDONLY));
59 EXPECT_GE(file.Fd(), 0);
60 EXPECT_TRUE(file.IsOpened());