248 {
249
250
251
253 std::string url_copy = start_info.resolved_url();
255 std::thread thread(
256 RunTestApplication, this, std::move(start_info), context_->svc(),
257 std::move(controller),
258
259 [this](std::shared_ptr<DartTestComponentController> ptr) {
260 test_components_.emplace(ptr.get(), std::move(ptr));
261 },
262
263 [this](DartTestComponentController* ptr) {
264 auto it = test_components_.find(ptr);
265 if (it != test_components_.end()) {
266 test_components_.erase(it);
267 }
268 });
269 thread.detach();
270 } else {
271 std::string url_copy = start_info.resolved_url();
273 std::thread thread(RunApplication, this, std::move(start_info),
274 context_->svc(), std::move(controller));
275 thread.detach();
276 }
277}
bool IsTestProgram(const fuchsia::data::Dictionary &program_metadata)
#define TRACE_EVENT1(category_group, name, arg1_name, arg1_val)