blob: eec836fde7f534083480d4b343f889df8d268260 [file] [log] [blame]
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -07001/*
2 * Copyright (C) 2018 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
17package com.android.systemui.statusbar.phone;
18
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070019import android.testing.AndroidTestingRunner;
20import android.testing.TestableLooper;
21import android.view.LayoutInflater;
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070022
Brett Chabot84151d92019-02-27 15:37:59 -080023import androidx.test.filters.SmallTest;
24
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070025import com.android.systemui.R;
26import com.android.systemui.SysuiTestCase;
27
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070028import org.junit.Test;
29import org.junit.runner.RunWith;
30
31@SmallTest
32@RunWith(AndroidTestingRunner.class)
Jason Monka716bac2018-12-05 15:48:21 -050033@TestableLooper.RunWithLooper
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070034public class KeyguardPresentationTest extends SysuiTestCase {
35 @Test
36 public void testInflation_doesntCrash() {
Jason Monka716bac2018-12-05 15:48:21 -050037 com.android.systemui.util.Assert.sMainLooper = TestableLooper.get(this).getLooper();
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070038 LayoutInflater inflater = LayoutInflater.from(getContext());
39 inflater.inflate(R.layout.keyguard_presentation, null);
40 }
41}