1 // Copyright (c) 2011 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.
5 #include "base/mac/scoped_nsobject.h"
6 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
7 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h"
11 class VerticalGradientViewTest : public CocoaTest {
13 VerticalGradientViewTest() {
14 NSRect frame = NSMakeRect(0, 0, 50, 27);
15 base::scoped_nsobject<VerticalGradientView> view(
16 [[VerticalGradientView alloc] initWithFrame:frame]);
18 [[test_window() contentView] addSubview:view_];
21 VerticalGradientView* view_;
24 TEST_VIEW(VerticalGradientViewTest, view_);