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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_cell.h" 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
9 9
10 namespace { 10 namespace {
11 11
12 class OmniboxPopupCellTest : public CocoaTest { 12 class OmniboxPopupCellTest : public CocoaTest {
13 public: 13 public:
14 OmniboxPopupCellTest() { 14 OmniboxPopupCellTest() {
15 } 15 }
16 16
17 virtual void SetUp() OVERRIDE { 17 virtual void SetUp() override {
18 CocoaTest::SetUp(); 18 CocoaTest::SetUp();
19 cell_.reset([[OmniboxPopupCell alloc] initTextCell:@""]); 19 cell_.reset([[OmniboxPopupCell alloc] initTextCell:@""]);
20 button_.reset([[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 20)]); 20 button_.reset([[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 20)]);
21 [button_ setCell:cell_]; 21 [button_ setCell:cell_];
22 [[test_window() contentView] addSubview:button_]; 22 [[test_window() contentView] addSubview:button_];
23 }; 23 };
24 24
25 protected: 25 protected:
26 base::scoped_nsobject<OmniboxPopupCell> cell_; 26 base::scoped_nsobject<OmniboxPopupCell> cell_;
27 base::scoped_nsobject<NSButton> button_; 27 base::scoped_nsobject<NSButton> button_;
(...skipping 10 matching lines...) Expand all
38 } 38 }
39 39
40 TEST_F(OmniboxPopupCellTest, Title) { 40 TEST_F(OmniboxPopupCellTest, Title) {
41 base::scoped_nsobject<NSAttributedString> text([[NSAttributedString alloc] 41 base::scoped_nsobject<NSAttributedString> text([[NSAttributedString alloc]
42 initWithString:@"The quick brown fox jumps over the lazy dog."]); 42 initWithString:@"The quick brown fox jumps over the lazy dog."]);
43 [cell_ setAttributedTitle:text]; 43 [cell_ setAttributedTitle:text];
44 [button_ display]; 44 [button_ display];
45 } 45 }
46 46
47 } // namespace 47 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698