Revert of Remove OneClickSigninHelper since it is no longer used. (patchset #5 id...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / hover_close_button_unittest.mm
blob5d19c302027c4780273ef4c8e925bb65d7e17c27
1 // Copyright (c) 2012 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 #import <Cocoa/Cocoa.h>
7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
9 #import "chrome/browser/ui/cocoa/hover_close_button.h"
10 #include "testing/gtest/include/gtest/gtest.h"
12 class HoverCloseButtonTest : public CocoaTest {
13  public:
14   HoverCloseButtonTest() {
15     NSRect content_frame = [[test_window() contentView] frame];
16     button_.reset([[HoverCloseButton alloc] initWithFrame:content_frame]);
17     [[test_window() contentView] addSubview:button_];
18   }
20  protected:
21   base::scoped_nsobject<HoverCloseButton> button_;
24 class WebUIHoverCloseButtonTest : public CocoaTest {
25  public:
26   WebUIHoverCloseButtonTest() {
27     NSRect content_frame = [[test_window() contentView] frame];
28     button_.reset([[WebUIHoverCloseButton alloc] initWithFrame:content_frame]);
29     [[test_window() contentView] addSubview:button_];
30   }
32  protected:
33   base::scoped_nsobject<WebUIHoverCloseButton> button_;
36 TEST_VIEW(HoverCloseButtonTest, button_)
38 TEST_VIEW(WebUIHoverCloseButtonTest, button_)