blob: 791cd835bbd8cf121afb51580975d62a4b7dfe97 (
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
26
|
// 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/ui/cocoa/tab_contents/sad_tab_view_cocoa.h"
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
namespace {
class SadTabViewTest : public CocoaTest {
public:
SadTabViewTest() {
NSRect content_frame = [[test_window() contentView] frame];
base::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
|