Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1003)

Unified Diff: chrome/browser/cocoa/nswindow_local_state_unittest.mm

Issue 402066: Moved a whole pile of unittests over to CocoaTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/nswindow_local_state_unittest.mm
===================================================================
--- chrome/browser/cocoa/nswindow_local_state_unittest.mm (revision 32421)
+++ chrome/browser/cocoa/nswindow_local_state_unittest.mm (working copy)
@@ -12,21 +12,26 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
-class NSWindowLocalStateTest : public PlatformTest {
+class NSWindowLocalStateTest : public CocoaTest {
virtual void SetUp() {
+ CocoaTest::SetUp();
path_ = L"NSWindowLocalStateTest";
- window_.reset(
+ window_ =
[[NSWindow alloc] initWithContentRect:NSMakeRect(100, 100, 20, 20)
styleMask:NSTitledWindowMask
backing:NSBackingStoreBuffered
- defer:NO]);
+ defer:NO];
browser_helper_.profile()->GetPrefs()->RegisterDictionaryPref(path_);
}
+ virtual void TearDown() {
+ [window_ close];
+ CocoaTest::TearDown();
+ }
+
public:
- CocoaTestHelper cocoa_helper_;
BrowserTestHelper browser_helper_;
- scoped_nsobject<NSWindow> window_;
+ NSWindow* window_;
const wchar_t* path_;
};
Property changes on: chrome/browser/cocoa/nswindow_local_state_unittest.mm
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/cocoa/location_bar_view_mac_unittest.mm ('k') | chrome/browser/cocoa/page_info_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698