1 /* 2 * Copyright (C) 2009 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 android.dpi2.cts; 18 19 import android.content.pm.ApplicationInfo; 20 import android.content.pm.PackageManager; 21 import android.content.pm.PackageManager.NameNotFoundException; 22 import android.test.AndroidTestCase; 23 24 import android.dpi.cts.DefaultManifestAttributesTest; 25 26 /** 27 * This class actually tests the manifest attributes from 28 * DefaultManifestAttributesTest for the cupcake sdk 29 */ 30 public class DefaultManifestAttributesCupcakeTest extends DefaultManifestAttributesTest { getPackageName()31 protected String getPackageName() { 32 return "android.dpi2.cts"; 33 } 34 35 // This is a sanity test to make sure that we're instrumenting the proper package testPackageHasExpectedSdkVersion()36 public void testPackageHasExpectedSdkVersion() { 37 assertEquals(3, getAppInfo().minSdkVersion); 38 } 39 } 40