// 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 #include #include #include #include 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 TestInfo::Instantiate(internal::TestDriver* driver) const { return factory_(driver); } } // namespace zxtest