1 /* 2 * Copyright (C) 2023 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.tests.chromium.host; 18 19 public class InstrumentationFlags { 20 static final String CHROMIUM_PACKAGE = "org.chromium.native_test"; 21 static final String NATIVE_TEST_ACTIVITY_KEY = String.format("%s.%s", CHROMIUM_PACKAGE, 22 "NativeTestInstrumentationTestRunner.NativeTestActivity"); 23 static final String RUN_IN_SUBTHREAD_KEY = String.format("%s.%s", CHROMIUM_PACKAGE, 24 "NativeTest.RunInSubThread"); 25 static final String NATIVE_UNIT_TEST_ACTIVITY_KEY = String.format("%s.%s", 26 CHROMIUM_PACKAGE, 27 "NativeUnitTestActivity"); 28 static final String COMMAND_LINE_FLAGS_KEY = String.format("%s.%s", CHROMIUM_PACKAGE, 29 "NativeTest.CommandLineFlags"); 30 static final String EXTRA_SHARD_NANO_TIMEOUT_KEY = String.format("%s.%s", 31 CHROMIUM_PACKAGE, 32 "NativeTestInstrumentationTestRunner.ShardNanoTimeout"); 33 static final String DUMP_COVERAGE_KEY = String.format("%s.%s", CHROMIUM_PACKAGE, 34 "NativeTestInstrumentationTestRunner.DumpCoverage"); 35 static final String LIBRARY_TO_LOAD_ACTIVITY_KEY = String.format("%s.%s", 36 CHROMIUM_PACKAGE, 37 "NativeTestInstrumentationTestRunner.LibraryUnderTest"); 38 static final String STDOUT_FILE_KEY = String.format("%s.%s", CHROMIUM_PACKAGE, 39 "NativeTestInstrumentationTestRunner.StdoutFile"); 40 static final String TEST_RUNNER = String.format("%s/%s", CHROMIUM_PACKAGE, 41 "org.chromium.build.gtest_apk.NativeTestInstrumentationTestRunner"); 42 } 43