1cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes/* 2cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * Copyright (C) 2015 The Android Open Source Project 3cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * 4cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * Licensed under the Apache License, Version 2.0 (the "License"); 5cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * you may not use this file except in compliance with the License. 6cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * You may obtain a copy of the License at 7cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * 8cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * http://www.apache.org/licenses/LICENSE-2.0 9cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * 10cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * Unless required by applicable law or agreed to in writing, software 11cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * distributed under the License is distributed on an "AS IS" BASIS, 12cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * See the License for the specific language governing permissions and 14cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes * limitations under the License. 15cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes */ 16cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes 17ac5fe7c617c66850fff75a9fce9979c6e5674b0fAurimas Liutikaspackage androidx.appcompat.app; 18cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes 19bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banesimport android.support.test.annotation.UiThreadTest; 20754cb29c50f09a83251dd4bb633ba445b2411adbAurimas Liutikasimport android.support.test.filters.SmallTest; 21bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes 22bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banesimport org.junit.Test; 23bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes 24cea79d768278d2c55f89263f99b8860cc5447aaaAurimas Liutikas@SmallTest 25a7eda07bf9dba63dde6cb4eaa06a5229cfd832ecAurimas Liutikaspublic class BasicsTestCaseWithWindowDecor extends BaseBasicsTestCase<WindowDecorAppCompatActivity> { 26cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes public BasicsTestCaseWithWindowDecor() { 27a7eda07bf9dba63dde6cb4eaa06a5229cfd832ecAurimas Liutikas super(WindowDecorAppCompatActivity.class); 28cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes } 29bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes 30bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes @Test 31bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes @UiThreadTest 32bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes public void testSupportActionModeAppCompatCallbacks() { 33bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes // Since we're using the decor action bar, any action modes not will be created 34bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes // from the window 35bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes testSupportActionModeAppCompatCallbacks(false); 36bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5Chris Banes } 37cdbdcb29b4a4e3bf1553f824902562cee3fcb723Chris Banes} 38