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;
17 
18 /**
19  * Constants for the device test-apps used to perform functional tests.
20  */
21 public class TestAppConstants {
22 
23     public static final String TESTAPP_PACKAGE = "com.android.tradefed.testapp";
24     public static final String TESTAPP_CLASS = "com.android.tradefed.testapp.OnDeviceTest";
25     public static final int TOTAL_TEST_CLASS_TESTS = 4;
26     public static final int TOTAL_TEST_CLASS_PASSED_TESTS = 1;
27     public static final String PASSED_TEST_METHOD = "testPassed";
28     public static final String FAILED_TEST_METHOD = "testFailed";
29     public static final String CRASH_TEST_METHOD = "testCrash";
30     public static final String TIMEOUT_TEST_METHOD = "testNeverEnding";
31     public static final String ANR_TEST_METHOD = "testAnr";
32 
33     public static final String CRASH_ON_INIT_TEST_CLASS =
34         "com.android.tradefed.testapp.CrashOnInitTest";
35     public static final String CRASH_ON_INIT_TEST_METHOD = "testNeverRun";
36     public static final String HANG_ON_INIT_TEST_CLASS =
37         "com.android.tradefed.testapp.HangOnInitTest";
38 
39     public static final String CRASH_ACTIVITY = String.format("%s/.CrashMeActivity",
40             TESTAPP_PACKAGE);
41 
42     public static final String UITESTAPP_PACKAGE = "com.android.tradefed.uitestapp";
43     public static final int UI_TOTAL_TESTS = 4;
44 
TestAppConstants()45     private TestAppConstants() {
46     }
47 }
48