1*8975f5c5SAndroid Build Coastguard Worker // Copyright 2021 The Chromium Authors 2*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file. 4*8975f5c5SAndroid Build Coastguard Worker 5*8975f5c5SAndroid Build Coastguard Worker package test; 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Worker import android.app.Application; 8*8975f5c5SAndroid Build Coastguard Worker 9*8975f5c5SAndroid Build Coastguard Worker /** Class which fails 'NewAPI' lint check. */ 10*8975f5c5SAndroid Build Coastguard Worker public class NewApiLintTest extends Application { testTriggerNewApiCheck()11*8975f5c5SAndroid Build Coastguard Worker public String testTriggerNewApiCheck() { 12*8975f5c5SAndroid Build Coastguard Worker // This was added in API level 30. 13*8975f5c5SAndroid Build Coastguard Worker return getApplicationContext().getAttributionTag(); 14*8975f5c5SAndroid Build Coastguard Worker } 15*8975f5c5SAndroid Build Coastguard Worker } 16