Move CreateTestContext to cc/testing.go

Allow CreateTestContext to be called by tests in other packages
that need cc modules.

Test: all soong tests
Change-Id: I6be04dec50632baa8cb51e55ba14d0ddc0df60b8
This commit is contained in:
Colin Cross
2019-05-14 15:44:26 -07:00
parent 33b2fb7333
commit 9a94287fc9
3 changed files with 54 additions and 54 deletions

View File

@@ -70,7 +70,7 @@ func TestPrebuilt(t *testing.T) {
config := android.TestArchConfig(buildDir, nil)
ctx := createTestContext(t, config, bp, fs, android.Android)
ctx := CreateTestContext(bp, fs, android.Android)
ctx.RegisterModuleType("cc_prebuilt_library_shared", android.ModuleFactoryAdaptor(prebuiltSharedLibraryFactory))
ctx.RegisterModuleType("cc_prebuilt_library_static", android.ModuleFactoryAdaptor(prebuiltStaticLibraryFactory))