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

Side by Side Diff: chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa_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/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/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 11 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
12 12
13 @interface ScreenCaptureNotificationController (ExposedForTesting) 13 @interface ScreenCaptureNotificationController (ExposedForTesting)
14 - (NSButton*)stopButton; 14 - (NSButton*)stopButton;
15 - (NSButton*)minimizeButton; 15 - (NSButton*)minimizeButton;
16 @end 16 @end
17 17
18 @implementation ScreenCaptureNotificationController (ExposedForTesting) 18 @implementation ScreenCaptureNotificationController (ExposedForTesting)
19 - (NSButton*)stopButton { 19 - (NSButton*)stopButton {
20 return stopButton_; 20 return stopButton_;
21 } 21 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 new ScreenCaptureNotificationUICocoa(base::UTF8ToUTF16("Title"))); 119 new ScreenCaptureNotificationUICocoa(base::UTF8ToUTF16("Title")));
120 target_->OnStarted( 120 target_->OnStarted(
121 base::Bind(&ScreenCaptureNotificationUICocoaTest::StopCallback, 121 base::Bind(&ScreenCaptureNotificationUICocoaTest::StopCallback,
122 base::Unretained(this))); 122 base::Unretained(this)));
123 123
124 [[controller() minimizeButton] performClick:nil]; 124 [[controller() minimizeButton] performClick:nil];
125 125
126 EXPECT_EQ(0, callback_called_); 126 EXPECT_EQ(0, callback_called_);
127 EXPECT_TRUE([[controller() window] isMiniaturized]); 127 EXPECT_TRUE([[controller() window] isMiniaturized]);
128 } 128 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/run_loop_testing_unittest.mm ('k') | chrome/browser/ui/cocoa/sprite_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698