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

Side by Side Diff: chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa_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 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/screen_capture_notification_ui_cocoa.h" 5 #import "chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
10 10
(...skipping 11 matching lines...) Expand all
22 return minimizeButton_; 22 return minimizeButton_;
23 } 23 }
24 @end 24 @end
25 25
26 class ScreenCaptureNotificationUICocoaTest : public CocoaTest { 26 class ScreenCaptureNotificationUICocoaTest : public CocoaTest {
27 public: 27 public:
28 ScreenCaptureNotificationUICocoaTest() 28 ScreenCaptureNotificationUICocoaTest()
29 : callback_called_(0) { 29 : callback_called_(0) {
30 } 30 }
31 31
32 virtual void TearDown() OVERRIDE { 32 virtual void TearDown() override {
33 callback_called_ = 0; 33 callback_called_ = 0;
34 target_.reset(); 34 target_.reset();
35 EXPECT_EQ(0, callback_called_); 35 EXPECT_EQ(0, callback_called_);
36 36
37 CocoaTest::TearDown(); 37 CocoaTest::TearDown();
38 } 38 }
39 39
40 void StopCallback() { 40 void StopCallback() {
41 ++callback_called_; 41 ++callback_called_;
42 } 42 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 new ScreenCaptureNotificationUICocoa(base::UTF8ToUTF16("Title"))); 115 new ScreenCaptureNotificationUICocoa(base::UTF8ToUTF16("Title")));
116 target_->OnStarted( 116 target_->OnStarted(
117 base::Bind(&ScreenCaptureNotificationUICocoaTest::StopCallback, 117 base::Bind(&ScreenCaptureNotificationUICocoaTest::StopCallback,
118 base::Unretained(this))); 118 base::Unretained(this)));
119 119
120 [[controller() minimizeButton] performClick:nil]; 120 [[controller() minimizeButton] performClick:nil];
121 121
122 EXPECT_EQ(0, callback_called_); 122 EXPECT_EQ(0, callback_called_);
123 EXPECT_TRUE([[controller() window] isMiniaturized]); 123 EXPECT_TRUE([[controller() window] isMiniaturized]);
124 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698