| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #import "chrome/browser/ui/cocoa/tab_contents/overlay_drop_shadow_view.h" | |
| 6 | |
| 7 #include "base/memory/scoped_nsobject.h" | |
| 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | |
| 9 | |
| 10 class OverlayDropShadowViewTest : public CocoaTest { | |
| 11 public: | |
| 12 OverlayDropShadowViewTest() { | |
| 13 NSView* contentView = [test_window() contentView]; | |
| 14 view_.reset( | |
| 15 [[OverlayDropShadowView alloc] initWithFrame:[contentView bounds]]); | |
| 16 [contentView addSubview:view_]; | |
| 17 } | |
| 18 | |
| 19 protected: | |
| 20 scoped_nsobject<OverlayDropShadowView> view_; | |
| 21 }; | |
| 22 | |
| 23 TEST_VIEW(OverlayDropShadowViewTest, view_); | |
| 24 | |
| 25 TEST_F(OverlayDropShadowViewTest, PreferredHeight) { | |
| 26 EXPECT_LT(0, [OverlayDropShadowView preferredHeight]); | |
| 27 } | |
| OLD | NEW |