Lines Matching refs:s
30 std::string s("hello"); in TEST() local
32 ASSERT_FALSE(android::base::ReadFileToString("/proc/does-not-exist", &s)); in TEST()
34 EXPECT_EQ("", s); // s was cleared. in TEST()
42 std::string s; in TEST() local
43 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
45 EXPECT_EQ("abc", s); in TEST()
62 std::string s; in TEST() local
63 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
65 EXPECT_EQ("abc", s); in TEST()
76 std::string s; in TEST() local
77 ASSERT_TRUE(android::base::ReadFdToString(tf.fd, &s)) << strerror(errno); in TEST()
78 EXPECT_EQ("abc", s); in TEST()
88 std::string s; in TEST() local
89 s.resize(3); in TEST()
90 ASSERT_TRUE(android::base::ReadFully(tf.fd, &s[0], s.size())) in TEST()
92 EXPECT_EQ("abc", s); in TEST()
96 s.resize(1024); in TEST()
97 ASSERT_FALSE(android::base::ReadFully(tf.fd, &s[0], s.size())); in TEST()