| OLD | NEW | 
|---|
| 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/mac/scoped_nsobject.h" | 5 #include "base/mac/scoped_nsobject.h" | 
| 6 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |  | 
| 7 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 6 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 
|  | 7 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 8 | 8 | 
| 9 namespace { | 9 namespace { | 
| 10 | 10 | 
| 11 class InfoBubbleViewTest : public CocoaTest { | 11 class InfoBubbleViewTest : public CocoaTest { | 
| 12  public: | 12  public: | 
| 13   InfoBubbleViewTest() { | 13   InfoBubbleViewTest() { | 
| 14     NSRect frame = NSMakeRect(0, 0, 100, 30); | 14     NSRect frame = NSMakeRect(0, 0, 100, 30); | 
| 15     base::scoped_nsobject<InfoBubbleView> view( | 15     base::scoped_nsobject<InfoBubbleView> view( | 
| 16         [[InfoBubbleView alloc] initWithFrame:frame]); | 16         [[InfoBubbleView 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   InfoBubbleView* view_; | 21   InfoBubbleView* view_; | 
| 22 }; | 22 }; | 
| 23 | 23 | 
| 24 TEST_VIEW(InfoBubbleViewTest, view_); | 24 TEST_VIEW(InfoBubbleViewTest, view_); | 
| 25 | 25 | 
| 26 }  // namespace | 26 }  // namespace | 
| OLD | NEW | 
|---|