Lines Matching refs:s
28 std::string s("hello"); in TEST() local
30 EXPECT_FALSE(read_file("/proc/does-not-exist", &s)); in TEST()
32 EXPECT_EQ("", s); // s was cleared. in TEST()
36 std::string s("hello"); in TEST() local
39 EXPECT_TRUE(write_file(tf.path, s)) << strerror(errno); in TEST()
41 EXPECT_FALSE(read_file(tf.path, &s)) << strerror(errno); in TEST()
42 EXPECT_EQ("", s); // s was cleared. in TEST()
46 std::string s("hello"); in TEST() local
49 EXPECT_TRUE(write_file(tf.path, s.c_str())) << strerror(errno); in TEST()
51 EXPECT_FALSE(read_file(tf.path, &s)) << strerror(errno); in TEST()
52 EXPECT_EQ("", s); // s was cleared. in TEST()
56 std::string s("hello"); in TEST() local
59 EXPECT_FALSE(read_file("/charger", &s)); in TEST()
61 EXPECT_EQ("", s); // s was cleared. in TEST()
65 std::string s("hello"); in TEST() local
66 EXPECT_TRUE(read_file("/proc/version", &s)); in TEST()
67 EXPECT_GT(s.length(), 6U); in TEST()
68 EXPECT_EQ('\n', s[s.length() - 1]); in TEST()
69 s[5] = 0; in TEST()
70 EXPECT_STREQ("Linux", s.c_str()); in TEST()
91 std::string s("hello"); in TEST() local
95 EXPECT_TRUE(write_file(path, s)); in TEST()
97 EXPECT_EQ(s, s2); in TEST()