Home | History | Annotate | Download | only in util
      1 /*
      2  * Copyright (C) 2012 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 
     17 
     18 package android.cts.util;
     19 
     20 import com.android.cts.util.ReportLog;
     21 
     22 import android.app.Activity;
     23 import android.test.ActivityInstrumentationTestCase2;
     24 
     25 
     26 public class CtsActivityInstrumentationTestCase2<T extends Activity> extends
     27         ActivityInstrumentationTestCase2<T> {
     28 
     29     private DeviceReportLog mReportLog = new DeviceReportLog();
     30 
     31     public CtsActivityInstrumentationTestCase2(Class<T> activityClass) {
     32         super(activityClass);
     33     }
     34 
     35     public ReportLog getReportLog() {
     36         return mReportLog;
     37     }
     38 
     39     @Override
     40     protected void tearDown() throws Exception {
     41         mReportLog.deliverReportToHost(getInstrumentation());
     42         super.tearDown();
     43     }
     44 
     45 }
     46