tools/mac/power/collapse_profile_test.py
def testTokenClean(self):
    """Tests that tokens that need to be removed are cleaned and others
    are left untouched."""

    samples = [{
        'frames': ['Chromium Framework`foo', 'bar', 'baz'],
        'weight': 24
    }]
    cleaned_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(cleaned_samples, stack_collapser.samples)
Tests that tokens that need to be removed are cleaned and others
    are left untouched.
Tests that tokens that need to be removed are cleaned and others
are left untouched.
Tests that tokens that need to be removed are cleaned and others are left untouched .
def testTokenClean(self):
    samples = [{
        'frames': ['Chromium Framework`foo', 'bar', 'baz'],
        'weight': 24
    }]
    cleaned_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(cleaned_samples, stack_collapser.samples)
def testTokenClean ( self ) : samples = [ { 'frames' : [ 'Chromium Framework`foo' , 'bar' , 'baz' ] , 'weight' : 24 } ] cleaned_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 ( cleaned_samples , stack_collapser . samples )
Tests that tokens that need to be removed are cleaned and others
are left untouched.
Tests that tokens that need to be removed are cleaned and others are left untouched .
"""Tests that tokens that need to be removed are cleaned and others
    are left untouched."""
self