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

Side by Side Diff: components/sad_tab/cocoa/sad_tab_view_unittest.mm

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix url_constants.cc Created 6 years, 2 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
« no previous file with comments | « components/sad_tab/cocoa/sad_tab_view.mm ('k') | components/sad_tab/sad_tab.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h" 5 #import "components/sad_tab/cocoa/sad_tab_view.h"
6 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 6 #import "ui/gfx/test/ui_cocoa_test_helper.h"
7 7
8 namespace { 8 namespace {
9 9
10 class SadTabViewTest : public CocoaTest { 10 class SadTabViewTest : public ui::CocoaTest {
11 public: 11 public:
12 SadTabViewTest() { 12 SadTabViewTest() {
13 NSRect content_frame = [[test_window() contentView] frame]; 13 NSRect content_frame = [[test_window() contentView] frame];
14 base::scoped_nsobject<SadTabView> view( 14 base::scoped_nsobject<SadTabView> view(
15 [[SadTabView alloc] initWithFrame:content_frame]); 15 [[SadTabView alloc] initWithFrame:content_frame]);
16 view_ = view.get(); 16 view_ = view.get();
17 [[test_window() contentView] addSubview:view_]; 17 [[test_window() contentView] addSubview:view_];
18 } 18 }
19 19
20 SadTabView* view_; // Weak. Owned by the view hierarchy. 20 SadTabView* view_; // Weak. Owned by the view hierarchy.
21 }; 21 };
22 22
23 TEST_VIEW(SadTabViewTest, view_); 23 TEST_VIEW(SadTabViewTest, view_);
24 24
25 } // namespace 25 } // namespace
OLDNEW
« no previous file with comments | « components/sad_tab/cocoa/sad_tab_view.mm ('k') | components/sad_tab/sad_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698