blob: 31cb5c128f6b460283d683e92d0b669954752a22 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/sys2/cpp/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/sys/cpp/component_context.h>
#include <lib/sys/cpp/service_directory.h>
#include <lib/syslog/cpp/macros.h>
#include <memory>
#include "runner.h"
int main(int argc, const char** argv) {
FX_LOGS(INFO) << "Started legacy test runner";
async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
auto context = sys::ComponentContext::CreateAndServeOutgoingDirectory();
Runner runner(context->svc(), loop.dispatcher());
context->outgoing()->AddPublicService(runner.GetHandler());
loop.Run();
}