1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.tradefed.result; 17 18 import com.android.ddmlib.testrunner.ITestRunListener; 19 import com.android.ddmlib.testrunner.TestIdentifier; 20 21 import java.util.Map; 22 23 /** 24 * Stub implementation of {@link ITestRunListener} 25 */ 26 public class StubTestRunListener implements ITestRunListener { 27 28 /** 29 * {@inheritDoc} 30 */ 31 @Override testEnded(TestIdentifier test, Map<String, String> testMetrics)32 public void testEnded(TestIdentifier test, Map<String, String> testMetrics) { 33 // ignore 34 } 35 36 /** 37 * {@inheritDoc} 38 */ 39 @Override testFailed(TestIdentifier test, String trace)40 public void testFailed(TestIdentifier test, String trace) { 41 // ignore 42 } 43 44 /** 45 * {@inheritDoc} 46 */ 47 @Override testAssumptionFailure(TestIdentifier test, String trace)48 public void testAssumptionFailure(TestIdentifier test, String trace) { 49 // ignore 50 } 51 52 /** 53 * {@inheritDoc} 54 */ 55 @Override testIgnored(TestIdentifier test)56 public void testIgnored(TestIdentifier test) { 57 // ignore 58 } 59 60 /** 61 * {@inheritDoc} 62 */ 63 @Override testRunEnded(long elapsedTime, Map<String, String> runMetrics)64 public void testRunEnded(long elapsedTime, Map<String, String> runMetrics) { 65 // ignore 66 } 67 68 /** 69 * {@inheritDoc} 70 */ 71 @Override testRunFailed(String errorMessage)72 public void testRunFailed(String errorMessage) { 73 // ignore 74 } 75 76 /** 77 * {@inheritDoc} 78 */ 79 @Override testRunStarted(String runName, int testCount)80 public void testRunStarted(String runName, int testCount) { 81 // ignore 82 } 83 84 /** {@inheritDoc} */ 85 @Override 86 @Deprecated testRunStopped(long elapsedTime)87 public void testRunStopped(long elapsedTime) { 88 // ignore 89 } 90 91 /** 92 * {@inheritDoc} 93 */ 94 @Override testStarted(TestIdentifier test)95 public void testStarted(TestIdentifier test) { 96 // ignore 97 } 98 } 99