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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/preview_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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698