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

Unified Diff: chrome/browser/cocoa/infobar_text_field_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/infobar_text_field_unittest.mm
===================================================================
--- chrome/browser/cocoa/infobar_text_field_unittest.mm (revision 32421)
+++ chrome/browser/cocoa/infobar_text_field_unittest.mm (working copy)
@@ -36,20 +36,23 @@
///////////////////////////////////////////////////////////////////////////
// Test fixtures
-class InfoBarTextFieldTest : public PlatformTest {
- protected:
- CocoaTestHelper helper_;
+class InfoBarTextFieldTest : public CocoaTest {
+ public:
+ InfoBarTextFieldTest() {
+ NSRect frame = NSMakeRect(0, 0, 200, 200);
+ scoped_nsobject<InfoBarTextField> field(
+ [[InfoBarTextField alloc] initWithFrame:frame]);
+ field_ = field.get();
+ [[test_window() contentView] addSubview:field_];
+ }
+
+ InfoBarTextField* field_;
};
////////////////////////////////////////////////////////////////////////////
// Tests
-TEST_F(InfoBarTextFieldTest, Show) {
- // Test basic drawing.
- scoped_nsobject<InfoBarTextField> field(
- [[InfoBarTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 200)]);
- [helper_.contentView() addSubview:field];
-}
+TEST_VIEW(InfoBarTextFieldTest, field_)
TEST_F(InfoBarTextFieldTest, LinkClicked) {
scoped_nsobject<InfoBarTextField> field(
« no previous file with comments | « chrome/browser/cocoa/infobar_controller_unittest.mm ('k') | chrome/browser/cocoa/keyword_editor_cocoa_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698