Home
last modified time | relevance | path

Searched refs:TestContext (Results 1 – 25 of 32) sorted by relevance

12

/build/soong/android/
Dtesting.go30 func NewTestContext(config Config) *TestContext {
36 ctx := &TestContext{
151 FixtureModifyContext(func(ctx *TestContext) {
161 func NewTestArchContext(config Config) *TestContext {
167 type TestContext struct { struct
181 func (ctx *TestContext) PreArchMutators(f RegisterMutatorFunc) { argument
185 func (ctx *TestContext) HardCodedPreArchMutators(f RegisterMutatorFunc) { argument
190 func (ctx *TestContext) PreDepsMutators(f RegisterMutatorFunc) { argument
194 func (ctx *TestContext) PostDepsMutators(f RegisterMutatorFunc) { argument
198 func (ctx *TestContext) FinalDepsMutators(f RegisterMutatorFunc) { argument
[all …]
Dnamespace_test.go635 func setupTestFromFiles(t *testing.T, bps MockFS) (ctx *TestContext, errs []error) {
637 FixtureModifyContext(func(ctx *TestContext) {
652 return result.TestContext, result.Errs
655 func setupTestExpectErrs(t *testing.T, bps map[string]string) (ctx *TestContext, errs []error) {
664 func setupTest(t *testing.T, bps map[string]string) (ctx *TestContext) {
671 func dependsOn(ctx *TestContext, module TestingModule, possibleDependency TestingModule) bool { argument
682 func numDeps(ctx *TestContext, module TestingModule) int { argument
691 func getModule(ctx *TestContext, moduleName string) TestingModule { argument
695 func findModuleById(ctx *TestContext, id string) (module TestingModule) { argument
Dfixture.go224 func FixtureModifyConfigAndContext(mutator func(config Config, ctx *TestContext)) FixturePreparer { argument
231 func FixtureModifyContext(mutator func(ctx *TestContext)) FixturePreparer { argument
238 return FixtureModifyContext(func(ctx *TestContext) { registeringFunc(ctx) })
602 Context() *TestContext
613 *TestContext anonMember
713 ctx *TestContext
729 func (f *fixture) Context() *TestContext {
Darch_test.go347 enabledVariants := func(ctx *TestContext, name string) []string {
367 ctx := result.TestContext
430 enabledVariants := func(ctx *TestContext, name string) []string {
460 ctx := result.TestContext
Dandroidmk_test.go142 func buildContextAndCustomModuleFoo(t *testing.T, bp string) (*TestContext, *customModule) {
154 return result.TestContext, module
/build/soong/apex/
Dsystemserver_classpath_fragment_test.go69 ensureExactContents(t, result.TestContext, "myapex", "android_common_myapex_image", []string{
74 …java.CheckModuleDependencies(t, result.TestContext, "myapex", "android_common_myapex_image", []str…
Dbootclasspath_fragment_test.go401 …ensureExactContents(t, result.TestContext, "com.android.art", "android_common_com.android.art_imag…
419 …java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android…
444 …ensureExactContents(t, result.TestContext, "com.android.art", "android_common_com.android.art_imag…
462 …java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android…
588 …java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android…
593 …java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_com…
685 ensureExactContents(t, result.TestContext, "myapex", "android_common_myapex_image", []string{
693 …java.CheckModuleDependencies(t, result.TestContext, "myapex", "android_common_myapex_image", []str…
842 …java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_ape…
1006 …java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_ape…
[all …]
Dplatform_bootclasspath_test.go301 …CheckModuleDependencies(t, result.TestContext, "myplatform-bootclasspath", "android_common", []str…
443 …CheckModuleDependencies(t, result.TestContext, "myplatform-bootclasspath", "android_common", []str…
474 func CheckModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected… argument
Dclasspath_element_test.go31 testContext *android.TestContext
235 return &testClasspathElementContext{testContext: result.TestContext, module: bootclasspath}
/build/soong/rust/
Drust_test.go59 func testRust(t *testing.T, bp string) *android.TestContext {
66 return result.TestContext
69 func testRustVndk(t *testing.T, bp string) *android.TestContext {
82 return result.TestContext
87 func testRustCov(t *testing.T, bp string) *android.TestContext {
100 return result.TestContext
/build/soong/linkerconfig/
Dlinkerconfig_test.go55 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)[0]
83 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)[0]
/build/soong/java/
Dtesting.go344 func CheckModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected… argument
363 pairs := ApexNamePairsFromModules(result.TestContext, platformBootclasspath.configuredModules)
368 func ApexNamePairsFromModules(ctx *android.TestContext, modules []android.Module) []string { argument
376 func apexNamePairFromModule(ctx *android.TestContext, module android.Module) string { argument
394 pairs := ApexNamePairsFromModules(result.TestContext, platformBootclasspath.fragments)
Dsystemserver_classpath_fragment_test.go71 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
87 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
Dplatform_bootclasspath_test.go197 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
206 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
224 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
271 entries := android.AndroidMkEntriesForTest(t, result.TestContext, platformBootclasspath)
Drro_test.go103 androidMkEntries := android.AndroidMkEntriesForTest(t, result.TestContext, m.Module())[0]
117 androidMkEntries = android.AndroidMkEntriesForTest(t, result.TestContext, m.Module())[0]
336 mkEntries := android.AndroidMkEntriesForTest(t, result.TestContext, module.Module())[0]
Dsdk_library_test.go313 CheckModuleDependencies(t, result.TestContext, "sdklib", "android_common", []string{
599 CheckModuleDependencies(t, result.TestContext, "sdklib", "android_common", []string{
631 CheckModuleDependencies(t, result.TestContext, "sdklib", "android_common", []string{
640 CheckModuleDependencies(t, result.TestContext, "prebuilt_sdklib", "android_common", []string{
675 CheckModuleDependencies(t, result.TestContext, "sdklib", "android_common", []string{
684 CheckModuleDependencies(t, result.TestContext, "prebuilt_sdklib", "android_common", []string{
Dandroidmk_test.go166 entries := android.AndroidMkEntriesForTest(t, result.TestContext, mod)[0]
185 entries := android.AndroidMkEntriesForTest(t, result.TestContext, mod)[0]
Djava_test.go68 func testJavaError(t *testing.T, pattern string, bp string) (*android.TestContext, android.Config) {
74 return result.TestContext, result.Config
82 func testJavaWithFS(t *testing.T, bp string, fs android.MockFS) (*android.TestContext, android.Conf…
86 return result.TestContext, result.Config
100 func testJava(t *testing.T, bp string) (*android.TestContext, android.Config) {
103 return result.TestContext, result.Config
1175 func checkPatchModuleFlag(t *testing.T, ctx *android.TestContext, moduleName string, expected strin… argument
1312 func checkBootClasspathForSystemModule(t *testing.T, ctx *android.TestContext, moduleName string, e… argument
Ddroidstubs_test.go164 func checkSystemModulesUseByDroidstubs(t *testing.T, ctx *android.TestContext, moduleName string, s… argument
/build/soong/sh/
Dsh_binary_test.go37 func testShBinary(t *testing.T, bp string) (*android.TestContext, android.Config) {
40 return result.TestContext, result.Config
/build/soong/python/
Dpython_test.go351 …expectModule(t, result.TestContext, e.name, e.actualVersion, e.srcsZip, e.pyRunfiles, e.depsSrcsZi…
358 func expectModule(t *testing.T, ctx *android.TestContext, name, variant, expectedSrcsZip string, ex… argument
/build/soong/cc/
Dcc_test.go47 func testCcWithConfig(t *testing.T, config android.Config) *android.TestContext {
50 return result.TestContext
64 func testCc(t *testing.T, bp string) *android.TestContext {
67 return result.TestContext
75 func testCcNoVndk(t *testing.T, bp string) *android.TestContext {
88 func testCcNoProductVndk(t *testing.T, bp string) *android.TestContext {
247 func checkInstallPartition(t *testing.T, ctx *android.TestContext, name, variant, expected string) { argument
334 `).TestContext
361 func checkVndkModule(t *testing.T, ctx *android.TestContext, name, subDir string, argument
399 func checkSnapshotIncludeExclude(t *testing.T, ctx *android.TestContext, singleton android.TestingS… argument
[all …]
Dgenrule_test.go24 func testGenruleContext(config android.Config) *android.TestContext {
Dprebuilt_test.go30 …esting.T, bp string, fs android.MockFS, handlers ...android.FixturePreparer) *android.TestContext {
37 return result.TestContext
/build/soong/genrule/
Dgenrule_test.go455 android.FixtureModifyContext(func(ctx *android.TestContext) {
676 func(config android.Config, ctx *android.TestContext) {

12