Lines Matching refs:self
26 def testParseAmInstResult(self): argument
35 self.assertEquals(4871, bundle_dict['java_size'])
36 self.assertEquals(33846, bundle_dict['cpu_time'])
37 self.assertEquals("\nError: Failed to generate emma coverage.",
40 def testParseAmInstStatus(self): argument
78 self.assertEquals('testLaunchComplexActivity', map['test'])
79 self.assertEquals('LaunchPerformanceTest', map['class'])
80 self.assertEquals('1', map['current'])
81 self.assertEquals('2', map['numtests'])
82 self.assertEquals('InstrumentationTestRunner', map['id'])
83 self.assertEquals(1, result.GetStatusCode())
87 self.assertEquals('testLaunchComplexActivity', map['test'])
88 self.assertEquals('866', map['cpu_time'])
89 self.assertEquals('1242', map['execution_time'])
90 self.assertEquals('LaunchPerformanceTest', map['class'])
91 self.assertEquals('1', map['current'])
92 self.assertEquals('2', map['numtests'])
93 self.assertEquals('InstrumentationTestRunner', map['id'])
94 self.assertEquals(0, result.GetStatusCode())
98 self.assertEquals('testLaunchSimpleActivity', map['test'])
99 self.assertEquals('LaunchPerformanceTest', map['class'])
100 self.assertEquals('2', map['current'])
101 self.assertEquals('8', map['numtests'])
102 self.assertEquals('InstrumentationTestRunner', map['id'])
103 self.assertEquals(1, result.GetStatusCode())
107 self.assertEquals('testLaunchSimpleActivity', map['test'])
108 self.assertEquals('590', map['cpu_time'])
109 self.assertEquals('1122', map['execution_time'])
110 self.assertEquals('LaunchPerformanceTest', map['class'])
111 self.assertEquals('2', map['current'])
112 self.assertEquals('8', map['numtests'])
113 self.assertEquals('InstrumentationTestRunner', map['id'])
114 self.assertEquals(0, result.GetStatusCode())
116 def testParseAmInstOutput(self): argument
187 self.assertEquals(829, perf_dict['cpu_time'])
188 self.assertEquals(2848, perf_dict['global_alloc_count'])
189 self.assertEquals(93040, perf_dict['global_freed_size'])
190 self.assertEquals(740, perf_dict['java_private_dirty'])
191 self.assertEquals(2755, perf_dict['java_size'])
192 self.assertEquals(632, perf_dict['native_private_dirty'])
193 self.assertEquals(2620, perf_dict['native_size'])
194 self.assertEquals(804, perf_dict['other_shared_dirty'])
195 self.assertEquals(-1, perf_dict['received_transactions'])
196 self.assertTrue(len(perf_dict['stream']) > 50)
197 self.assertEquals('-1', perf_dict['code'])