• primiano's avatar
    Allocator cleanup: remove reundant tc_set_new_mode in ProcessMemoryTest · e9da717d
    primiano authored
    Leftover from the previous cleanups.
    Previously, when base did pretend to not know anything about allocator,
    tc_set_new_mode was invoked by the content layer (in content_main).
    But this required this base unittest to mimic the same content behavior.
    
    These days, instead, tc_set_new_mode() is called by base's
    EnableTerminationOnOutOfMemory(). This test is already invoking
    EnableTerminationOnOutOfMemory() in its initialization, so there is
    no need to perform a 2nd call to tc_set_new_mode.
    
    Also this makes the code in this test conceptually cleaner and smaller.
    
    BUG=564618
    TEST=base_unittests
    
    Review URL: https://codereview.chromium.org/1683153002
    
    Cr-Commit-Position: refs/heads/master@{#374750}
    e9da717d
memory_unittest.cc 14.4 KB