mirror of
https://github.com/androidx/media.git
synced 2025-05-10 09:12:16 +08:00
Shorten the string form of AnalyticsCollectorTest internal objects
This makes test failures with lists of items much easier to read PiperOrigin-RevId: 312035040
This commit is contained in:
parent
ceddc60296
commit
8188c29279
@ -1255,15 +1255,21 @@ public final class AnalyticsCollectorTest {
|
|||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return mediaPeriodId != null
|
return mediaPeriodId != null
|
||||||
? "Event{"
|
? "{"
|
||||||
+ "window="
|
+ "window="
|
||||||
+ windowIndex
|
+ windowIndex
|
||||||
+ ", period="
|
|
||||||
+ mediaPeriodId.periodUid
|
|
||||||
+ ", sequence="
|
+ ", sequence="
|
||||||
+ mediaPeriodId.windowSequenceNumber
|
+ mediaPeriodId.windowSequenceNumber
|
||||||
|
+ (mediaPeriodId.adGroupIndex != C.INDEX_UNSET
|
||||||
|
? ", adGroup="
|
||||||
|
+ mediaPeriodId.adGroupIndex
|
||||||
|
+ ", adIndexInGroup="
|
||||||
|
+ mediaPeriodId.adIndexInAdGroup
|
||||||
|
: "")
|
||||||
|
+ ", period.hashCode="
|
||||||
|
+ mediaPeriodId.periodUid.hashCode()
|
||||||
+ '}'
|
+ '}'
|
||||||
: "Event{" + "window=" + windowIndex + ", period = null}";
|
: "{" + "window=" + windowIndex + ", period = null}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -1534,12 +1540,7 @@ public final class AnalyticsCollectorTest {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ReportedEvent{"
|
return "{" + "type=" + eventType + ", windowAndPeriodId=" + eventWindowAndPeriodId + '}';
|
||||||
+ "type="
|
|
||||||
+ eventType
|
|
||||||
+ ", windowAndPeriodId="
|
|
||||||
+ eventWindowAndPeriodId
|
|
||||||
+ '}';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user