package com.google.android.apps.common.testing.testrunner; /** * Used by test infrastructure to report usage stats (optionally). * * This interface should only be used by test infrastructure. */ public interface UsageTracker { /** * Indicates that a particular tool/api was used. * * Usage will be dumped at the end of the instrumentation run. */ public void trackUsage(String usage); /** * Requests that all usages be sent. */ public void sendUsages(); /** * NoOp implementation. */ public static class NoOpUsageTracker implements UsageTracker { @Override public void trackUsage(String unused) { } @Override public void sendUsages() { } } }