MCPcopy Create free account
hub / github.com/chromium/crashpad / MultiprocessParent

Method MultiprocessParent

util/linux/proc_task_reader_test.cc:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
154TEST(ProcTaskReader, ReadChild) {

Callers

nothing calls this directly

Calls 3

ReadThreadIDsFunction · 0.85
FindThreadIDFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected