Searched refs:LogItem (Results 1 – 4 of 4) sorted by relevance
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/junit/rules/ |
D | ExpectedLogMessagesRule.java | 12 import org.robolectric.shadows.ShadowLog.LogItem; 23 private final Set<LogItem> expectedLogs = new HashSet<>(); 24 private final Set<LogItem> observedLogs = new HashSet<>(); 36 List<LogItem> logs = ShadowLog.getLogs(); in apply() 37 for (LogItem log : logs) { in apply() 38 LogItem throwLessLogItem = new LogItem(log.type, log.tag, log.msg, null); in apply() 87 expectedLogs.add(new LogItem(level, tag, message, null));
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLog.java | 21 private static final Map<String, Queue<LogItem>> logsByTag = Collections.synchronizedMap(new 22 HashMap<String, Queue<LogItem>>()); 23 private static final Queue<LogItem> logs = new ConcurrentLinkedQueue<>(); 141 LogItem item = new LogItem(level, tag, msg, throwable); in addLog() 142 Queue<LogItem> itemList; in addLog() 180 public static List<LogItem> getLogs() { in getLogs() 190 public static List<LogItem> getLogsForTag(String tag) { in getLogsForTag() 191 Queue<LogItem> logs = logsByTag.get(tag); in getLogsForTag() 237 public static class LogItem { class in ShadowLog 243 public LogItem(int type, String tag, String msg, Throwable throwable) { in LogItem() method in ShadowLog.LogItem [all …]
|
D | ShadowPackageParser.java | 16 import org.robolectric.shadows.ShadowLog.LogItem; 52 List<LogItem> logItems = ShadowLog.getLogsForTag("PackageParser"); in callParsePackage() 57 LogItem logItem = logItems.get(0); in callParsePackage()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLogTest.java | 18 import org.robolectric.shadows.ShadowLog.LogItem; 195 List<LogItem> allItems = ShadowLog.getLogs(); in shouldLogAccordingToTag() 198 for (LogItem item : allItems) { in shouldLogAccordingToTag() 208 List<LogItem> tag1Items = ShadowLog.getLogsForTag(tag); in assertUniformLogsForTag() 211 for (LogItem item : tag1Items) { in assertUniformLogsForTag() 247 LogItem lastLog = Iterables.getLast(ShadowLog.getLogs()); in assertLogged() 256 LogItem item1 = new LogItem(Log.VERBOSE, "Foo", "Bar", null); in identicalLogItemInstancesAreEqual() 257 LogItem item2 = new LogItem(Log.VERBOSE, "Foo", "Bar", null); in identicalLogItemInstancesAreEqual()
|