Searched refs:GetFirstLineWithPrefix (Results 1 – 3 of 3) sorted by relevance
/system/core/crash_reporter/ |
D | user_collector_test.cc | 212 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()
|
D | user_collector.h | 68 FRIEND_TEST(UserCollectorTest, GetFirstLineWithPrefix); 112 bool GetFirstLineWithPrefix(const std::vector<std::string> &lines,
|
D | user_collector.cc | 130 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()
|