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

Side by Side Diff: ui/base/cocoa/controls/blue_label_button_unittest.mm

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 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 "ui/base/cocoa/controls/blue_label_button.h" 5 #import "ui/base/cocoa/controls/blue_label_button.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #import "testing/gtest_mac.h" 8 #import "testing/gtest_mac.h"
9 #import "ui/gfx/test/ui_cocoa_test_helper.h" 9 #import "ui/gfx/test/ui_cocoa_test_helper.h"
10 10
11 namespace ui { 11 namespace ui {
12 namespace test { 12 namespace test {
13 13
14 class BlueLabelButtonTest : public ui::CocoaTest { 14 class BlueLabelButtonTest : public ui::CocoaTest {
15 public: 15 public:
16 BlueLabelButtonTest() {} 16 BlueLabelButtonTest() {}
17 17
18 // ui::CocoaTest override: 18 // ui::CocoaTest override:
19 virtual void SetUp() OVERRIDE; 19 virtual void SetUp() override;
20 20
21 protected: 21 protected:
22 base::scoped_nsobject<BlueLabelButton> blue_label_button_; 22 base::scoped_nsobject<BlueLabelButton> blue_label_button_;
23 23
24 private: 24 private:
25 DISALLOW_COPY_AND_ASSIGN(BlueLabelButtonTest); 25 DISALLOW_COPY_AND_ASSIGN(BlueLabelButtonTest);
26 }; 26 };
27 27
28 void BlueLabelButtonTest::SetUp() { 28 void BlueLabelButtonTest::SetUp() {
29 blue_label_button_.reset([[BlueLabelButton alloc] initWithFrame:NSZeroRect]); 29 blue_label_button_.reset([[BlueLabelButton alloc] initWithFrame:NSZeroRect]);
30 [blue_label_button_ setTitle:@"Test Title"]; 30 [blue_label_button_ setTitle:@"Test Title"];
31 [blue_label_button_ sizeToFit]; 31 [blue_label_button_ sizeToFit];
32 ui::CocoaTest::SetUp(); 32 ui::CocoaTest::SetUp();
33 [[test_window() contentView] addSubview:blue_label_button_]; 33 [[test_window() contentView] addSubview:blue_label_button_];
34 } 34 }
35 35
36 TEST_VIEW(BlueLabelButtonTest, blue_label_button_); 36 TEST_VIEW(BlueLabelButtonTest, blue_label_button_);
37 37
38 } // namespace test 38 } // namespace test
39 } // namespace ui 39 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_aurax11.cc ('k') | ui/base/cocoa/controls/hover_image_menu_button_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698