Lines Matching refs:path

35 static inline void _VerifyPathValue(const std::string& path,  in _VerifyPathValue()  argument
38 EXPECT_TRUE(android::base::ReadFileToString(path, &s)) << strerror(errno); in _VerifyPathValue()
45 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST()
46 _VerifyPathValue(tf.path, ""); in TEST()
52 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, true); in TEST()
53 _VerifyPathValue(tf.path, "value1"); in TEST()
55 FileNode t2("t2", tf2.path, {{"value0"}, {"value1"}, {"value2"}}, 0, true); in TEST()
56 _VerifyPathValue(tf2.path, "value0"); in TEST()
62 FileNode t("test_dump", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, in TEST()
68 android::base::StringPrintf("test_dump\t%s\t1\tvalue1\n", tf.path)); in TEST()
69 _VerifyPathValue(dumptf.path, buf); in TEST()
75 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST()
87 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST()
129 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true); in TEST()
134 _VerifyPathValue(tf.path, "value1"); in TEST()
140 _VerifyPathValue(tf.path, "value0"); in TEST()
146 _VerifyPathValue(tf.path, "value1"); in TEST()
152 _VerifyPathValue(tf.path, "value2"); in TEST()
159 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true); in TEST()
164 _VerifyPathValue(tf.path, "value1"); in TEST()
170 _VerifyPathValue(tf.path, "value0"); in TEST()
176 _VerifyPathValue(tf.path, "value1"); in TEST()
182 _VerifyPathValue(tf.path, "value2"); in TEST()
189 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true, in TEST()
196 _VerifyPathValue(tf.path, "value1"); in TEST()
202 _VerifyPathValue(tf.path, "value0"); in TEST()
208 _VerifyPathValue(tf.path, "value0"); in TEST()
214 _VerifyPathValue(tf.path, "value0"); in TEST()
220 _VerifyPathValue(tf.path, "value1"); in TEST()
226 _VerifyPathValue(tf.path, "value2"); in TEST()