Remove ConvertWithBp2build implementations
Remove the ConvertWithBp2build implementations from all the module types, along with the related code. Bug: 315353489 Test: m blueprint_tests Change-Id: I212672286686a318893bc7348ddd5a5ec51e77a7
This commit is contained in:
@@ -85,30 +85,6 @@ func TestLinkerScript(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestCcObjectWithBazel(t *testing.T) {
|
||||
bp := `
|
||||
cc_object {
|
||||
name: "foo",
|
||||
srcs: ["baz.o"],
|
||||
bazel_module: { label: "//foo/bar:bar" },
|
||||
}`
|
||||
config := TestConfig(t.TempDir(), android.Android, nil, bp, nil)
|
||||
config.BazelContext = android.MockBazelContext{
|
||||
OutputBaseDir: "outputbase",
|
||||
LabelToOutputFiles: map[string][]string{
|
||||
"//foo/bar:bar": []string{"bazel_out.o"}}}
|
||||
ctx := testCcWithConfig(t, config)
|
||||
|
||||
module := ctx.ModuleForTests("foo", "android_arm_armv7-a-neon").Module()
|
||||
outputFiles, err := module.(android.OutputFileProducer).OutputFiles("")
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error getting cc_object outputfiles %s", err)
|
||||
}
|
||||
|
||||
expectedOutputFiles := []string{"outputbase/execroot/__main__/bazel_out.o"}
|
||||
android.AssertDeepEquals(t, "output files", expectedOutputFiles, outputFiles.Strings())
|
||||
}
|
||||
|
||||
func TestCcObjectOutputFile(t *testing.T) {
|
||||
testcases := []struct {
|
||||
name string
|
||||
|
Reference in New Issue
Block a user