Add cc_library tests
Add tests around reusing objects between static and shared
libraries.
Test: library_test.go
Change-Id: I1a1a01c5ea9f9edfbcaa5b29c39c281630e04f70
diff --git a/cc/cc_test.go b/cc/cc_test.go
index 32cffe4..b451f17 100644
--- a/cc/cc_test.go
+++ b/cc/cc_test.go
@@ -108,12 +108,17 @@
name: "crtend_so",
}
+ cc_library {
+ name: "libprotobuf-cpp-lite",
+ }
+
`
ctx.MockFileSystem(map[string][]byte{
"Android.bp": []byte(bp),
"foo.c": nil,
"bar.c": nil,
+ "a.proto": nil,
})
_, errs := ctx.ParseFileList(".", []string{"Android.bp"})