1 /*
2  * Copyright (C) 2022 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 package com.android.bedstead.harrier;
18 
19 /**
20  * A result which can be exposed by {@link BedsteadRunResultsProvider}.
21  */
22 public final class BedsteadResult {
23     public static final int PASSED_RESULT = 0;
24     public static final int FAILED_RESULT = 1;
25     public static final int IGNORED_RESULT = 2;
26     public static final int ASSUMPTION_FAILED_RESULT = 3;
27 
28     public final int mIndex;
29     public final String mTestName;
30     public int mResult;
31     public String mMessage;
32     public String mStackTrace;
33     public boolean mHasBeenFetched = false;
34     public long mRuntime;
35     public boolean mIsFinished = false;
36 
BedsteadResult(int index, String testName)37     public BedsteadResult(int index, String testName) {
38         mIndex = index;
39         mTestName = testName;
40     }
41 }
42