blob: afeda72ee12c4993e24aa7365001926f4cf2af97 [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