Merge "Remove usage of StringFactory"

am: 8a79748b0c

Change-Id: Ifebd392e5fec43089a3cd7722fbf6e3d6637f935
This commit is contained in:
Neil Fuller
2018-10-10 14:40:02 -07:00
committed by android-build-merger

View File

@@ -189,8 +189,7 @@ public class HomeSpTest {
Map<String, Long> homeNetworkIds = new HashMap<>();
byte[] rawSsidBytes = new byte[33];
Arrays.fill(rawSsidBytes, (byte) 'a');
homeNetworkIds.put(
StringFactory.newStringFromBytes(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L);
homeNetworkIds.put(new String(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L);
homeSp.setHomeNetworkIds(homeNetworkIds);
assertFalse(homeSp.validate());
}