tools/mac/power/collapse_profile_test.py
def testNoStackShortening(self):
    """Tests that sampes with no uninteresting frames don't get modified."""

    samples = [{'frames': ['foo', 'bar', 'baz'], 'weight': 24}]
    stack_collapser = StackCollapser('./samples.collapsed')
    stack_collapser.set_samples_for_testing(samples)
    stack_collapser.post_process_samples()
    self.assertEquals(samples, stack_collapser.samples)
Tests that sampes with no uninteresting frames don't get modified.
Tests that sampes with no uninteresting frames don't get modified.
Tests that sampes with no uninteresting frames don ' t get modified .
def testNoStackShortening(self):
    samples = [{'frames': ['foo', 'bar', 'baz'], 'weight': 24}]
    stack_collapser = StackCollapser('./samples.collapsed')
    stack_collapser.set_samples_for_testing(samples)
    stack_collapser.post_process_samples()
    self.assertEquals(samples, stack_collapser.samples)
def testNoStackShortening ( self ) : samples = [ { 'frames' : [ 'foo' , 'bar' , 'baz' ] , 'weight' : 24 } ] stack_collapser = StackCollapser ( './samples.collapsed' ) stack_collapser . set_samples_for_testing ( samples ) stack_collapser . post_process_samples ( ) self . assertEquals ( samples , stack_collapser . samples )
Tests that sampes with no uninteresting frames don't get modified.
Tests that sampes with no uninteresting frames don ' t get modified .
"""Tests that sampes with no uninteresting frames don't get modified."""
self