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/preview_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 PreviewDropShadowViewTest : public CocoaTest { | |
11 public: | |
12 PreviewDropShadowViewTest() { | |
13 NSView* contentView = [test_window() contentView]; | |
14 view_.reset( | |
15 [[PreviewDropShadowView alloc] initWithFrame:[contentView bounds]]); | |
16 [contentView addSubview:view_]; | |
17 } | |
18 | |
19 protected: | |
20 scoped_nsobject<PreviewDropShadowView> view_; | |
21 }; | |
22 | |
23 TEST_VIEW(PreviewDropShadowViewTest, view_); | |
24 | |
25 TEST_F(PreviewDropShadowViewTest, PreferredHeight) { | |
26 EXPECT_LT(0, [PreviewDropShadowView preferredHeight]); | |
27 } | |
OLD | NEW |