| 136 | } |
| 137 | |
| 138 | void MultiprocessParent() override { |
| 139 | std::vector<pid_t> ids_to_find; |
| 140 | for (size_t id_count = 0; id_count < 4; ++id_count) { |
| 141 | ASSERT_TRUE(ReadIDFromChild(&ids_to_find)); |
| 142 | } |
| 143 | |
| 144 | std::vector<pid_t> threads; |
| 145 | ASSERT_TRUE(ReadThreadIDs(ChildPID(), &threads)); |
| 146 | for (size_t index = 0; index < ids_to_find.size(); ++index) { |
| 147 | SCOPED_TRACE( |
| 148 | base::StringPrintf("index %zd, tid %d", index, ids_to_find[index])); |
| 149 | EXPECT_TRUE(FindThreadID(ids_to_find[index], threads)); |
| 150 | } |
| 151 | } |
| 152 | }; |
| 153 | |
| 154 | TEST(ProcTaskReader, ReadChild) { |
nothing calls this directly
no test coverage detected