blob: 80c80825d5938d800740e89c6fe35329c90d3470 [file] [log] [blame]
// Copyright 2019 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 <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/sys/cpp/component_context.h>
#include "test_suite.h"
/// Demonstrates a incomplete test where executor never gets OnFinished event for a test case.
int main() {
std::vector<example::TestInput> inputs = {
{.name = "Example.Test1",
.status = fuchsia::test::Status::PASSED,
.set_outcome_status = false},
{.name = "Example.Test2", .status = fuchsia::test::Status::PASSED},
{.name = "Example.Test3",
.status = fuchsia::test::Status::PASSED,
.set_outcome_status = false}};
async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
auto context = sys::ComponentContext::Create();
example::TestSuite suite(&loop, std::move(inputs));
context->outgoing()->AddPublicService(suite.GetHandler());
loop.Run();
return 0;
}