Fixes some deprecation warnings about proto generated Maps.
Bug: 145627559
Test: Existing (refactoring)
Change-Id: I1054ae4c4ad24c24076ebffa0bd25391d2ad14ec
diff --git a/tests/src/com/android/tradefed/result/proto/ProtoResultReporterTest.java b/tests/src/com/android/tradefed/result/proto/ProtoResultReporterTest.java
index 1bcbe79..b3f0bfe 100644
--- a/tests/src/com/android/tradefed/result/proto/ProtoResultReporterTest.java
+++ b/tests/src/com/android/tradefed/result/proto/ProtoResultReporterTest.java
@@ -116,10 +116,10 @@
assertEquals(TestStatus.FAIL, testRecord2.getStatus());
assertEquals("I failed", testRecord2.getDebugInfo().getTrace());
// test 2 has 1 metric and 1 log artifact
- assertEquals(1, testRecord2.getMetrics().size());
- assertEquals(1, testRecord2.getArtifacts().size());
+ assertEquals(1, testRecord2.getMetricsMap().size());
+ assertEquals(1, testRecord2.getArtifactsMap().size());
// run 1 has one log file
- assertEquals(1, run1.getArtifacts().size());
+ assertEquals(1, run1.getArtifactsMap().size());
}
/** Test when testRunFailed in called from within a test context (testStarted/TestEnded). */