Lines Matching refs:string

72   std::vector<std::pair<std::string, std::string>> props_to_restore_;
81 std::string path = testing::internal::GetArgvs()[0]; in SyspropRestorer()
87 std::vector<std::string> props = { in SyspropRestorer()
88 std::string("libc.debug.gwp_asan.sample_rate.") + basename, in SyspropRestorer()
89 std::string("libc.debug.gwp_asan.process_sampling.") + basename, in SyspropRestorer()
90 std::string("libc.debug.gwp_asan.max_allocs.") + basename, in SyspropRestorer()
104 std::string reset_log; in SyspropRestorer()
106 for (const std::string& prop : props) { in SyspropRestorer()
107 std::string value = GetSysprop(prop); in SyspropRestorer()
124 static std::string GetSysprop(const std::string& name) { in GetSysprop()
125 std::string value; in GetSysprop()
131 std::string* v = static_cast<std::string*>(cookie); in GetSysprop()
140 std::string maps; in TEST_F()
142 EXPECT_TRUE(maps.find("GWP-ASan") != std::string::npos) << maps; in TEST_F()
154 std::string maps; in TEST()
156 EXPECT_TRUE(maps.find("GWP-ASan") != std::string::npos) << maps; in TEST()
160 std::string maps; in TEST()
162 EXPECT_TRUE(maps.find("GWP-ASan") == std::string::npos); in TEST()
171 std::string path = testing::internal::GetArgvs()[0]; in TEST()
173 __system_property_set((std::string("libc.debug.gwp_asan.sample_rate.") + basename).c_str(), "1"); in TEST()
174 __system_property_set((std::string("libc.debug.gwp_asan.process_sampling.") + basename).c_str(), in TEST()
176 __system_property_set((std::string("libc.debug.gwp_asan.max_allocs.") + basename).c_str(), in TEST()
188 std::string path = testing::internal::GetArgvs()[0]; in TEST()
191 (std::string("persist.libc.debug.gwp_asan.sample_rate.") + basename).c_str(), "1"); in TEST()
193 (std::string("persist.libc.debug.gwp_asan.process_sampling.") + basename).c_str(), "1"); in TEST()
194 __system_property_set((std::string("persist.libc.debug.gwp_asan.max_allocs.") + basename).c_str(), in TEST()
228 std::string path = testing::internal::GetArgvs()[0]; in TEST()
231 (std::string("persist.libc.debug.gwp_asan.sample_rate.") + basename).c_str(), "1"); in TEST()
233 (std::string("persist.libc.debug.gwp_asan.process_sampling.") + basename).c_str(), "1"); in TEST()
234 __system_property_set((std::string("persist.libc.debug.gwp_asan.max_allocs.") + basename).c_str(), in TEST()