DescriptionAllocator cleanup: remove reundant tc_set_new_mode in ProcessMemoryTest
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
Committed: https://crrev.com/e9da717d1cd3fd4b41b04456b9e454c5c028cac3
Cr-Commit-Position: refs/heads/master@{#374750}
Patch Set 1 #
Messages
Total messages: 13 (6 generated)
|