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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_separator_view_unittest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/omnibox/omnibox_popup_separator_view.h" 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_separator_view.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 9 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
10 10
11 class OmniboxPopupBottomSeparatorViewTest : public CocoaTest { 11 class OmniboxPopupBottomSeparatorViewTest : public CocoaTest {
12 public: 12 public:
13 OmniboxPopupBottomSeparatorViewTest() { 13 OmniboxPopupBottomSeparatorViewTest() {
14 NSView* contentView = [test_window() contentView]; 14 NSView* contentView = [test_window() contentView];
15 bottom_view_.reset([[OmniboxPopupBottomSeparatorView alloc] 15 bottom_view_.reset([[OmniboxPopupBottomSeparatorView alloc]
16 initWithFrame:[contentView bounds]]); 16 initWithFrame:[contentView bounds]]);
17 [contentView addSubview:bottom_view_]; 17 [contentView addSubview:bottom_view_];
18 } 18 }
19 19
(...skipping 24 matching lines...) Expand all
44 44
45 private: 45 private:
46 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupTopSeparatorViewTest); 46 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupTopSeparatorViewTest);
47 }; 47 };
48 48
49 TEST_VIEW(OmniboxPopupTopSeparatorViewTest, top_view_); 49 TEST_VIEW(OmniboxPopupTopSeparatorViewTest, top_view_);
50 50
51 TEST_F(OmniboxPopupTopSeparatorViewTest, PreferredHeight) { 51 TEST_F(OmniboxPopupTopSeparatorViewTest, PreferredHeight) {
52 EXPECT_LT(0, [OmniboxPopupTopSeparatorView preferredHeight]); 52 EXPECT_LT(0, [OmniboxPopupTopSeparatorView preferredHeight]);
53 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698