Home | History | Annotate | Download | only in base

Lines Matching defs:path

28 bool PathExists(const std::string& path) {
30 return stat(path.c_str(), &stat_buf) == 0;
34 std::string path;
38 path = tf.path();
40 ASSERT_NE("", path);
42 ASSERT_TRUE(PathExists(path));
46 ASSERT_EQ("", tf.path());
48 ASSERT_EQ(path, moved_tf.path());
53 ASSERT_EQ("", moved_tf.path());
55 ASSERT_EQ(path, moved_tf2.path());
61 ASSERT_FALSE(PathExists(path));
70 ASSERT_EQ("", tf.path());
89 std::string path;
92 path = tf.path();
97 ASSERT_FALSE(PathExists(path));
104 std::string path;
107 ASSERT_NE("", td.path());
108 ASSERT_TRUE(PathExists(td.path()));
109 path = td.path();
111 ASSERT_FALSE(PathExists(path));