2 * Copyright (C) 2010 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.dumprendertree2;
19 import android.os.Bundle;
20 import android.os.Message;
21 import android.webkit.WebView;
24 * A dummy class representing test that crashed.
26 * TODO: All the methods regarding expected results need implementing.
28 public class CrashedDummyResult extends AbstractResult {
31 public CrashedDummyResult(String relativePath) {
32 mRelativePath = relativePath;
36 public byte[] getActualImageResult() {
41 public String getActualTextResult() {
46 public Bundle getBundle() {
52 public String getDiffAsHtml() {
53 /** TODO: Probably show at least expected results */
54 return "Ooops, I crashed...";
58 public String getRelativePath() {
63 public ResultCode getResultCode() {
64 return ResultCode.NO_ACTUAL_RESULT;
68 public boolean didCrash() {
73 public boolean didTimeOut() {
78 public void setDidTimeOut() {
79 /** This method is not applicable for this type of result */
84 public TestType getType() {
89 public void obtainActualResults(WebView webview, Message resultObtainedMsg) {
90 /** This method is not applicable for this type of result */
95 public void setExpectedImageResult(byte[] expectedResult) {
100 public void setExpectedTextResult(String expectedResult) {
105 public String getExpectedImageResultPath() {
111 public String getExpectedTextResultPath() {
117 public void setExpectedImageResultPath(String relativePath) {
122 public void setExpectedTextResultPath(String relativePath) {