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