blob: c5875554b0737acab456d1b6799d33219034bdd6 [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
19import android.support.test.filters.SmallTest;
20import android.testing.AndroidTestingRunner;
21import android.testing.TestableLooper;
22import android.view.LayoutInflater;
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070023
24import com.android.systemui.R;
25import com.android.systemui.SysuiTestCase;
26
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070027import org.junit.Test;
28import org.junit.runner.RunWith;
29
30@SmallTest
31@RunWith(AndroidTestingRunner.class)
Jason Monka716bac2018-12-05 15:48:21 -050032@TestableLooper.RunWithLooper
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070033public class KeyguardPresentationTest extends SysuiTestCase {
34 @Test
35 public void testInflation_doesntCrash() {
Jason Monka716bac2018-12-05 15:48:21 -050036 com.android.systemui.util.Assert.sMainLooper = TestableLooper.get(this).getLooper();
Lucas Dupin0cf5e4a2018-05-02 00:33:17 -070037 LayoutInflater inflater = LayoutInflater.from(getContext());
38 inflater.inflate(R.layout.keyguard_presentation, null);
39 }
40}