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

Side by Side Diff: chrome/browser/ui/cocoa/vertical_gradient_view_unittest.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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 (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "base/memory/scoped_nsobject.h" 5 #include "base/mac/scoped_nsobject.h"
6 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 6 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
7 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h" 7 #import "chrome/browser/ui/cocoa/vertical_gradient_view.h"
8 8
9 namespace { 9 namespace {
10 10
11 class VerticalGradientViewTest : public CocoaTest { 11 class VerticalGradientViewTest : public CocoaTest {
12 public: 12 public:
13 VerticalGradientViewTest() { 13 VerticalGradientViewTest() {
14 NSRect frame = NSMakeRect(0, 0, 50, 27); 14 NSRect frame = NSMakeRect(0, 0, 50, 27);
15 scoped_nsobject<VerticalGradientView> view( 15 base::scoped_nsobject<VerticalGradientView> view(
16 [[VerticalGradientView alloc] initWithFrame:frame]); 16 [[VerticalGradientView alloc] initWithFrame:frame]);
17 view_ = view.get(); 17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_]; 18 [[test_window() contentView] addSubview:view_];
19 } 19 }
20 20
21 VerticalGradientView* view_; 21 VerticalGradientView* view_;
22 }; 22 };
23 23
24 TEST_VIEW(VerticalGradientViewTest, view_); 24 TEST_VIEW(VerticalGradientViewTest, view_);
25 25
26 } // namespace 26 } // namespace
27 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698