Home
last modified time | relevance | path

Searched refs:mChecker (Results 1 – 13 of 13) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DSystemServerFileDescriptorCheckerTest.java39 private SystemServerFileDescriptorChecker mChecker; field in SystemServerFileDescriptorCheckerTest
46 mChecker = new SystemServerFileDescriptorChecker(); in setUp()
55 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
56 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
67 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount()
68 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount()
79 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount()
80 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount()
91 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUnacceptableFdCount()
92 StatusCheckerResult postResult = mChecker.postExecutionCheck(mMockDevice); in testUnacceptableFdCount()
[all …]
DEnforcedSeLinuxCheckerTest.java36 private EnforcedSeLinuxChecker mChecker; field in EnforcedSeLinuxCheckerTest
41 mChecker = new EnforcedSeLinuxChecker(); in setUp()
47 OptionSetter setter = new OptionSetter(mChecker); in testEnforced()
52 StatusCheckerResult result = mChecker.postExecutionCheck(mMockDevice); in testEnforced()
58 OptionSetter setter = new OptionSetter(mChecker); in testPermissive()
63 StatusCheckerResult result = mChecker.postExecutionCheck(mMockDevice); in testPermissive()
69 OptionSetter setter = new OptionSetter(mChecker); in testEnforced_failed()
74 StatusCheckerResult result = mChecker.postExecutionCheck(mMockDevice); in testEnforced_failed()
DSystemServerStatusCheckerTest.java40 private SystemServerStatusChecker mChecker; field in SystemServerStatusCheckerTest
49 mChecker = in setUp()
65 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted()
66 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted()
76 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithoutDeviceReboot()
77 StatusCheckerResult result = mChecker.postExecutionCheck(mMockDevice); in testSystemServerProcessRestartedWithoutDeviceReboot()
89 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
90 StatusCheckerResult result = mChecker.postExecutionCheck(mMockDevice); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
103 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
104 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
DFilesystemRootCheckerTest.java39 private FilesystemRootChecker mChecker; field in FilesystemRootCheckerTest
45 mChecker = new FilesystemRootChecker(); in setup()
69 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testNoRootFiles()
70 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testNoRootFiles()
78 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testRootFile()
91 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testRootFile()
99 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testRootDirectory()
112 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testRootDirectory()
132 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testModuleStartWithRootFile()
133 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testModuleStartWithRootFile()
DDeviceBaselineCheckerTest.java43 private DeviceBaselineChecker mChecker; field in DeviceBaselineCheckerTest
50 mChecker = new DeviceBaselineChecker(); in setup()
51 mOptionSetter = new OptionSetter(mChecker); in setup()
77 mChecker.setDeviceBaselineSetters(deviceBaselineSetters); in testSetBaselineSettings_inExperimentList()
79 StatusCheckerResult result = mChecker.preExecutionCheck(mMockDevice); in testSetBaselineSettings_inExperimentList()
105 mChecker.setDeviceBaselineSetters(deviceBaselineSetters); in testSetBaselineSettings_notInExperimentList()
107 StatusCheckerResult result = mChecker.preExecutionCheck(mMockDevice); in testSetBaselineSettings_notInExperimentList()
132 mChecker.setDeviceBaselineSetters(deviceBaselineSetters); in testFailToSetBaselineSettings()
134 StatusCheckerResult result = mChecker.preExecutionCheck(mMockDevice); in testFailToSetBaselineSettings()
159 mChecker.setDeviceBaselineSetters(deviceBaselineSetters); in testSetBaselineSettings_oldDeviceApiLevel()
[all …]
DDeviceSettingCheckerTest.java42 private DeviceSettingChecker mChecker; field in DeviceSettingCheckerTest
49 mChecker = new DeviceSettingChecker(); in setup()
50 mOptionSetter = new OptionSetter(mChecker); in setup()
67 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged()
68 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged()
93 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsChanged()
94 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsChanged()
118 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings()
119 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings()
141 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsMissedPostExecution()
[all …]
DDeviceStorageStatusCheckerTest.java37 private DeviceStorageStatusChecker mChecker; field in DeviceStorageStatusCheckerTest
44 mChecker = new DeviceStorageStatusChecker(); in setup()
45 mOptionSetter = new OptionSetter(mChecker); in setup()
57 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testEnoughDeviceStorage()
67 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testInEnoughDeviceStorageOn1Partition()
78 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testNotEnoughDeviceStorageWithGivenStorageParameter()
90 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testEnoughDeviceStorageWithGivenStorageParameter()
DTimeStatusCheckerTest.java39 private TimeStatusChecker mChecker; field in TimeStatusCheckerTest
46 mChecker = new TimeStatusChecker(); in setUp()
57 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_small()
68 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_large()
85 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_multiFailure()
86 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_multiFailure()
DActivityStatusCheckerTest.java41 private ActivityStatusChecker mChecker; field in ActivityStatusCheckerTest
49 mChecker = new ActivityStatusChecker(); in setUp()
50 mChecker.setTestLogger(mMockLogger); in setUp()
66 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckerLauncherHomeScreen()
83 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckerOtherActivity()
DActivityStatusCheckerFuncTest.java34 private ActivityStatusChecker mChecker; field in ActivityStatusCheckerFuncTest
50 mChecker = new ActivityStatusChecker(); in setUp()
56 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mTestDevice).getStatus()); in testPostExecutionCheck()
DShellStatusCheckerTest.java47 private ShellStatusChecker mChecker; field in ShellStatusCheckerTest
58 mChecker = new ShellStatusChecker(); in setUp()
105 StatusCheckerResult res = mChecker.preExecutionCheck(mMockDevice); in expectPreAndPost()
116 res = mChecker.postExecutionCheck(mMockDevice); in expectPreAndPost()
171 OptionSetter setter = new OptionSetter(mChecker); in setExpectedRoot()
DLeakedThreadStatusCheckerTest.java37 private LeakedThreadStatusChecker mChecker; field in LeakedThreadStatusCheckerTest
42 mChecker = new LeakedThreadStatusChecker(); in setUp()
105 mResult = mChecker.postExecutionCheck(null); in run()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DDeviceBatteryLevelCheckerTest.java59 private DeviceBatteryLevelChecker mChecker = null; field in DeviceBatteryLevelCheckerTest
125 mChecker = in setUp()
152 mChecker.run(mTestInfo, mMockListener); in testNull()
174 mChecker.run(mTestInfo, mMockListener); in testNormal()
197 mChecker.setResumeLevel(5); in testLow()
198 mChecker.run(mTestInfo, mMockListener); in testLow()
233 mChecker.run(mTestInfo, mMockListener); in testLow_becomeHigh()
266 mChecker.run(mTestInfo, mMockListener); in testLow_becomeNull()