diff options
Diffstat (limited to 'chrome/browser/cocoa/task_manager_mac_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/task_manager_mac_unittest.mm | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/task_manager_mac_unittest.mm b/chrome/browser/cocoa/task_manager_mac_unittest.mm index 2bb73ce..45a2ab2 100644 --- a/chrome/browser/cocoa/task_manager_mac_unittest.mm +++ b/chrome/browser/cocoa/task_manager_mac_unittest.mm @@ -12,14 +12,19 @@ namespace { -class TaskManagerWindowControllerTest : public PlatformTest { +class TaskManagerWindowControllerTest : public CocoaTest { public: - TaskManagerWindowControllerTest() { - controller_.reset([[TaskManagerWindowController alloc] init]); + virtual void SetUp() { + CocoaTest::SetUp(); + controller_ = [[TaskManagerWindowController alloc] init]; } - scoped_nsobject<TaskManagerWindowController> controller_; - CocoaTestHelper cocoa_helper_; // Inits Cocoa, creates window, etc... + virtual void TearDown() { + [controller_ close]; + CocoaTest::TearDown(); + } + + TaskManagerWindowController *controller_; }; // Test creation, to ensure nothing leaks or crashes |