diff options
Diffstat (limited to 'cc/testing.go')
-rw-r--r-- | cc/testing.go | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/cc/testing.go b/cc/testing.go index b9d84f6cb..00bf51124 100644 --- a/cc/testing.go +++ b/cc/testing.go @@ -44,9 +44,6 @@ func GatherRequiredDepsForTest(oses ...android.OsType) string { supportLinuxBionic := false for _, os := range oses { - if os == android.Fuchsia { - ret += withFuchsiaModules() - } if os == android.Windows { ret += withWindowsModules() } @@ -471,19 +468,6 @@ func withWindowsModules() string { ` } -func withFuchsiaModules() string { - return ` - cc_library { - name: "libbioniccompat", - stl: "none", - } - cc_library { - name: "libcompiler_rt", - stl: "none", - } - ` -} - func withLinuxBionic() string { return ` cc_binary { @@ -625,14 +609,6 @@ var PrepareForTestOnLinuxBionic = android.GroupFixturePreparers( android.FixtureOverrideTextFile(linuxBionicDefaultsPath, withLinuxBionic()), ) -// The preparer to include if running a cc related test for fuchsia. -var PrepareForTestOnFuchsia = android.GroupFixturePreparers( - // Place the default cc test modules for fuschia in a location that will not conflict with default - // test modules defined by other packages. - android.FixtureAddTextFile("defaults/cc/fuschia/Android.bp", withFuchsiaModules()), - android.PrepareForTestSetDeviceToFuchsia, -) - // This adds some additional modules and singletons which might negatively impact the performance // of tests so they are not included in the PrepareForIntegrationTestWithCc. var PrepareForTestWithCcIncludeVndk = android.GroupFixturePreparers( @@ -663,14 +639,7 @@ func TestConfig(buildDir string, os android.OsType, env map[string]string, mockFS[k] = v } - var config android.Config - if os == android.Fuchsia { - panic("Fuchsia not supported use test fixture instead") - } else { - config = android.TestArchConfig(buildDir, env, bp, mockFS) - } - - return config + return android.TestArchConfig(buildDir, env, bp, mockFS) } // CreateTestContext is the legacy way of creating a TestContext for testing cc modules. |