Home
last modified time | relevance | path

Searched refs:GetFirstLineWithPrefix (Results 1 – 3 of 3) sorted by relevance

/system/core/crash_reporter/
Duser_collector_test.cc212 TEST_F(UserCollectorTest, GetFirstLineWithPrefix) { in TEST_F() argument
216 EXPECT_FALSE(collector_.GetFirstLineWithPrefix(lines, "Name:", &line)); in TEST_F()
224 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, "Name:", &line)); in TEST_F()
228 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, "State:", &line)); in TEST_F()
232 EXPECT_FALSE(collector_.GetFirstLineWithPrefix(lines, "Foo:", &line)); in TEST_F()
236 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, " Foo:", &line)); in TEST_F()
240 EXPECT_FALSE(collector_.GetFirstLineWithPrefix(lines, "Bar:", &line)); in TEST_F()
Duser_collector.h68 FRIEND_TEST(UserCollectorTest, GetFirstLineWithPrefix);
112 bool GetFirstLineWithPrefix(const std::vector<std::string> &lines,
Duser_collector.cc130 bool UserCollector::GetFirstLineWithPrefix( in GetFirstLineWithPrefix() function in UserCollector
150 if (!GetFirstLineWithPrefix(status_lines, prefix, &id_line)) { in GetIdFromStatus()
171 if (!GetFirstLineWithPrefix(status_lines, kStatePrefix, &state_line)) { in GetStateFromStatus()