Fix BlobCache_test

Change-Id: I5b20aeb4dcff80f1e18e1165b8461d20034dc1ac
diff --git a/libs/utils/tests/BlobCache_test.cpp b/libs/utils/tests/BlobCache_test.cpp
index b64cc39..7202123 100644
--- a/libs/utils/tests/BlobCache_test.cpp
+++ b/libs/utils/tests/BlobCache_test.cpp
@@ -273,8 +273,8 @@
     void roundTrip() {
         size_t size = mBC->getFlattenedSize();
         uint8_t* flat = new uint8_t[size];
-        ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0));
-        ASSERT_EQ(OK, mBC2->unflatten(flat, size, NULL, 0));
+        ASSERT_EQ(OK, mBC->flatten(flat, size));
+        ASSERT_EQ(OK, mBC2->unflatten(flat, size));
         delete[] flat;
     }
 
@@ -321,7 +321,7 @@
 
     size_t size = mBC->getFlattenedSize();
     uint8_t* flat = new uint8_t[size];
-    ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC->flatten(flat, size));
     delete[] flat;
 
     // Verify the cache that we just serialized
@@ -343,7 +343,7 @@
 
     size_t size = mBC->getFlattenedSize() - 1;
     uint8_t* flat = new uint8_t[size];
-    ASSERT_EQ(BAD_VALUE, mBC->flatten(flat, size, NULL, 0));
+    ASSERT_EQ(BAD_VALUE, mBC->flatten(flat, size));
     delete[] flat;
 }
 
@@ -353,11 +353,11 @@
 
     size_t size = mBC->getFlattenedSize();
     uint8_t* flat = new uint8_t[size];
-    ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC->flatten(flat, size));
     flat[1] = ~flat[1];
 
     // Bad magic should cause an error.
-    ASSERT_EQ(BAD_VALUE, mBC2->unflatten(flat, size, NULL, 0));
+    ASSERT_EQ(BAD_VALUE, mBC2->unflatten(flat, size));
     delete[] flat;
 
     // The error should cause the unflatten to result in an empty cache
@@ -370,12 +370,12 @@
 
     size_t size = mBC->getFlattenedSize();
     uint8_t* flat = new uint8_t[size];
-    ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC->flatten(flat, size));
     flat[5] = ~flat[5];
 
     // Version mismatches shouldn't cause errors, but should not use the
     // serialized entries
-    ASSERT_EQ(OK, mBC2->unflatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC2->unflatten(flat, size));
     delete[] flat;
 
     // The version mismatch should cause the unflatten to result in an empty
@@ -389,12 +389,12 @@
 
     size_t size = mBC->getFlattenedSize();
     uint8_t* flat = new uint8_t[size];
-    ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC->flatten(flat, size));
     flat[10] = ~flat[10];
 
     // Version mismatches shouldn't cause errors, but should not use the
     // serialized entries
-    ASSERT_EQ(OK, mBC2->unflatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC2->unflatten(flat, size));
     delete[] flat;
 
     // The version mismatch should cause the unflatten to result in an empty
@@ -408,10 +408,10 @@
 
     size_t size = mBC->getFlattenedSize();
     uint8_t* flat = new uint8_t[size];
-    ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0));
+    ASSERT_EQ(OK, mBC->flatten(flat, size));
 
     // A buffer truncation shouldt cause an error
-    ASSERT_EQ(BAD_VALUE, mBC2->unflatten(flat, size-1, NULL, 0));
+    ASSERT_EQ(BAD_VALUE, mBC2->unflatten(flat, size-1));
     delete[] flat;
 
     // The error should cause the unflatten to result in an empty cache