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

Unified Diff: chrome/browser/cocoa/download_shelf_view_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/download_shelf_view_unittest.mm
===================================================================
--- chrome/browser/cocoa/download_shelf_view_unittest.mm (revision 32421)
+++ chrome/browser/cocoa/download_shelf_view_unittest.mm (working copy)
@@ -10,17 +10,14 @@
namespace {
-class DownloadShelfViewTest : public PlatformTest {
- public:
- CocoaTestHelper cocoa_helper_;
- scoped_nsobject<DownloadShelfView> view_;
+class DownloadShelfViewTest : public CocoaTest {
};
// This class only needs to do one thing: prevent mouse down events from moving
// the parent window around.
TEST_F(DownloadShelfViewTest, CanDragWindow) {
- view_.reset([[DownloadShelfView alloc] init]);
- EXPECT_FALSE([view_.get() mouseDownCanMoveWindow]);
+ scoped_nsobject<DownloadShelfView> view([[DownloadShelfView alloc] init]);
+ EXPECT_FALSE([view mouseDownCanMoveWindow]);
}
} // namespace
« no previous file with comments | « chrome/browser/cocoa/clickhold_button_cell_unittest.mm ('k') | chrome/browser/cocoa/event_utils_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698