blob: 697fd2b2e70b9ef4f8bc53087fcb76bcb4632616 [file] [log] [blame]
// Copyright 2018 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 <memory>
#include <utility>
#include <zxtest/base/test-info.h>
#include <zxtest/base/test.h>
#include <zxtest/base/types.h>
namespace zxtest {
TestInfo::TestInfo(const fbl::String& name, const SourceLocation& location,
internal::TestFactory factory)
: factory_(std::move(factory)), name_(name), location_(location) {}
TestInfo::TestInfo(TestInfo&& rhs) = default;
TestInfo::~TestInfo() = default;
std::unique_ptr<Test> TestInfo::Instantiate(internal::TestDriver* driver) const {
return factory_(driver);
} // namespace zxtest