summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/task_manager_mac_unittest.mm
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 00:57:28 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 00:57:28 +0000
commit6967396b75ee0c323c79fc183a7410a16b0df19f (patch)
tree3624818750bf7a29c2d2466d11b7e55658cc8ae4 /chrome/browser/cocoa/task_manager_mac_unittest.mm
parent9f2425c48ab8fc3bd32cff77d1524ae43c0b8b1e (diff)
downloadchromium_src-6967396b75ee0c323c79fc183a7410a16b0df19f.zip
chromium_src-6967396b75ee0c323c79fc183a7410a16b0df19f.tar.gz
chromium_src-6967396b75ee0c323c79fc183a7410a16b0df19f.tar.bz2
Move TaskManagerMacUnitTest over to Cocoatest.
BUG=none TEST=none Review URL: http://codereview.chromium.org/404010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/task_manager_mac_unittest.mm')
-rw-r--r--chrome/browser/cocoa/task_manager_mac_unittest.mm15
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