blob: dd6fed04d3e67fe20d8d178a94f9076669a3f7a3 [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
Brett Chabot502ec7a2019-03-01 14:43:20 -080021import androidx.test.InstrumentationRegistry;
Vishnu Nair8248b7c2018-08-01 10:13:36 -070022
23import org.junit.Before;
24import org.junit.Ignore;
25import org.junit.Test;
26
27/**
28 * Contains {@link WindowAnimationFrameStatsMonitor} tests.
29 * To run this test: {@code atest FlickerLibTest:WindowAnimationFrameStatsMonitorTest}
30 */
31public class WindowAnimationFrameStatsMonitorTest {
32 private WindowAnimationFrameStatsMonitor mWindowAnimationFrameStatsMonitor;
33
34 @Before
35 public void setup() {
36 mWindowAnimationFrameStatsMonitor = new WindowAnimationFrameStatsMonitor(
37 InstrumentationRegistry.getInstrumentation());
38 wakeUpAndGoToHomeScreen();
39 }
40
41 // TODO(vishnun)
42 @Ignore("Disabled until app-helper libraries are available.")
43 @Test
44 public void captureWindowAnimationFrameStats() throws Exception {
45 mWindowAnimationFrameStatsMonitor.start();
46 //AppHelperWrapper.getInstance().getHelper(CHROME).open();
47 //AppHelperWrapper.getInstance().getHelper(CHROME).exit();
48 mWindowAnimationFrameStatsMonitor.stop();
49 }
50}