Merge "assemble_vintf conflict of hal names for multiple manifest fragments"
diff --git a/test/Android.bp b/test/Android.bp
index c098152..4849a63 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -30,7 +30,6 @@
cflags: [
"-O0",
"-g",
- "-Wno-error=unused-function",
],
target: {
host: {
diff --git a/test/main.cpp b/test/main.cpp
index 495b35c..507e0d1 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -39,11 +39,13 @@
extern const XmlConverter<HalManifest> &gHalManifestConverter;
extern const XmlConverter<CompatibilityMatrix> &gCompatibilityMatrixConverter;
+#ifdef LIBVINTF_HOST
static bool Contains(const std::string& str, const std::string& sub) {
return str.find(sub) != std::string::npos;
}
#define EXPECT_CONTAINS(str, sub) \
EXPECT_TRUE(Contains((str), (sub))) << "Cannot find \"" << (sub) << "\" in \"" << (str) << "\""
+#endif
struct LibVintfTest : public ::testing::Test {
public: