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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/overlay_drop_shadow_view_unittest.mm

Issue 12386019: Instant: Use only one hidden WebContents per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698