blob: 125c56e5ca518ba93e94abf483348adcb60f39d9 [file] [log] [blame]
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.cts.tradefed.util;
import com.android.cts.util.ReportLog;
/**
* ReportLog for host tests
* Note that setTestInfo should be set before throwing report
*/
public class HostReportLog extends ReportLog {
private String mDeviceSerial;
private String mClassMethodName;
/**
* @param deviceSerial serial number of the device
* @param classMethodName class name and method name of the test in class#method format.
* Note that ReportLog.getClassMethodNames() provide this.
*/
public HostReportLog(String deviceSerial, String classMethodName) {
mDeviceSerial = deviceSerial;
mClassMethodName = classMethodName;
}
public void deliverReportToHost() {
CtsHostStore.storeCtsResult(mDeviceSerial, mClassMethodName, generateReport());
}
}