blob: f7fa0d572de6691325f4f02cf82f6af306115ed0 [file] [log] [blame]
Vishnu Nair8248b7c2018-08-01 10:13:36 -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.server.wm.flicker.monitor;
18
19import static com.android.server.wm.flicker.AutomationUtils.wakeUpAndGoToHomeScreen;
20
21import static com.google.common.truth.Truth.assertThat;
22
23import android.support.test.InstrumentationRegistry;
24
25import org.junit.Before;
26import org.junit.Ignore;
27import org.junit.Test;
28
29/**
30 * Contains {@link WindowAnimationFrameStatsMonitor} tests.
31 * To run this test: {@code atest FlickerLibTest:WindowAnimationFrameStatsMonitorTest}
32 */
33public class WindowAnimationFrameStatsMonitorTest {
34 private WindowAnimationFrameStatsMonitor mWindowAnimationFrameStatsMonitor;
35
36 @Before
37 public void setup() {
38 mWindowAnimationFrameStatsMonitor = new WindowAnimationFrameStatsMonitor(
39 InstrumentationRegistry.getInstrumentation());
40 wakeUpAndGoToHomeScreen();
41 }
42
43 // TODO(vishnun)
44 @Ignore("Disabled until app-helper libraries are available.")
45 @Test
46 public void captureWindowAnimationFrameStats() throws Exception {
47 mWindowAnimationFrameStatsMonitor.start();
48 //AppHelperWrapper.getInstance().getHelper(CHROME).open();
49 //AppHelperWrapper.getInstance().getHelper(CHROME).exit();
50 mWindowAnimationFrameStatsMonitor.stop();
51 }
52}