Lines Matching defs:TestContext
183 type TestContext struct { struct
184 *Context
185 preArch, preDeps, postDeps, finalDeps []RegisterMutatorFunc
186 bp2buildPreArch, bp2buildMutators []RegisterMutatorFunc
187 NameResolver *NameResolver
190 preSingletons, singletons sortableComponents
194 preSingletonOrder, mutatorOrder, singletonOrder []string
197 func (ctx *TestContext) PreArchMutators(f RegisterMutatorFunc) {
201 func (ctx *TestContext) HardCodedPreArchMutators(f RegisterMutatorFunc) {
206 func (ctx *TestContext) ModuleProvider(m blueprint.Module, p blueprint.ProviderKey) interface{} {
210 func (ctx *TestContext) PreDepsMutators(f RegisterMutatorFunc) {
214 func (ctx *TestContext) PostDepsMutators(f RegisterMutatorFunc) {
218 func (ctx *TestContext) FinalDepsMutators(f RegisterMutatorFunc) {
222 func (ctx *TestContext) RegisterBp2BuildConfig(config Bp2BuildConversionAllowlist) {
228 func (ctx *TestContext) PreArchBp2BuildMutators(f RegisterMutatorFunc) {
441 func (ctx *TestContext) Register() {
465 func (ctx *TestContext) RegisterForBazelConversion() {
471 func (ctx *TestContext) RegisterForApiBazelConversion() {
476 …ctx *TestContext) ParseFileList(rootDir string, filePaths []string) (deps []string, errs []error) {
482 func (ctx *TestContext) ParseBlueprintsFiles(rootDir string) (deps []string, errs []error) {
488 func (ctx *TestContext) RegisterModuleType(name string, factory ModuleFactory) {
492 func (ctx *TestContext) RegisterSingletonModuleType(name string, factory SingletonModuleFactory) {
498 func (ctx *TestContext) RegisterSingletonType(name string, factory SingletonFactory) {
502 func (ctx *TestContext) RegisterPreSingletonType(name string, factory SingletonFactory) {
512 …*TestContext) ModuleVariantForTests(name string, matchVariations map[string]string) TestingModule {
566 func (ctx *TestContext) ModuleForTests(name, variant string) TestingModule {
598 func (ctx *TestContext) ModuleVariantsForTests(name string) []string {
609 func (ctx *TestContext) SingletonForTests(name string) TestingSingleton {
669 func (ctx *TestContext) InstallMakeRulesForTesting(t *testing.T) []InstallMakeRule {
710 …tx *TestContext) MakeVarsForTesting(filter func(variable MakeVarVariable) bool) []MakeVarVariable {
722 func (ctx *TestContext) Config() Config {
1142 func AndroidMkEntriesForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) []AndroidMkEntri…
1157 func AndroidMkDataForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) AndroidMkData {