// Copyright 2022 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//	http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package testing

import (
	"android/soong/android"
)

var (
	pctx = android.NewPackageContext("android/soong/testing")
)

func init() {
	RegisterBuildComponents(android.InitRegistrationContext)
	pctx.HostBinToolVariable("metadata", "metadata")
}

func RegisterBuildComponents(ctx android.RegistrationContext) {
	ctx.RegisterModuleType("code_metadata", CodeMetadataFactory)
	ctx.RegisterModuleType("test_spec", TestSpecFactory)
	ctx.RegisterParallelSingletonType("all_code_metadata", AllCodeMetadataFactory)
	ctx.RegisterParallelSingletonType("all_test_specs", AllTestSpecsFactory)
}
