summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/sad_tab_view_unittest.mm
blob: 7daddd3119384dc9222b952c6574771516031074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "chrome/browser/cocoa/sad_tab_view.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"

namespace {

class SadTabViewTest : public CocoaTest {
 public:
  SadTabViewTest() {
    NSRect content_frame = [[test_window() contentView] frame];
    scoped_nsobject<SadTabView> view([[SadTabView alloc]
                                      initWithFrame:content_frame]);
    view_ = view.get();
    [[test_window() contentView] addSubview:view_];
  }

  SadTabView* view_;  // Weak. Owned by the view hierarchy.
};

TEST_VIEW(SadTabViewTest, view_);

}  // namespace