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

Side by Side Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_alert_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/constrained_window/constrained_window_alert.h" 5 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_alert.h"
6 6
7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 7 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
8 #import "testing/gtest_mac.h" 8 #import "testing/gtest_mac.h"
9 9
10 class ConstrainedWindowAlertTest : public CocoaTest { 10 class ConstrainedWindowAlertTest : public CocoaTest {
11 }; 11 };
12 12
13 @interface ConstrainedWindowAlertTestTarget : NSObject { 13 @interface ConstrainedWindowAlertTestTarget : NSObject {
14 @private 14 @private
15 int linkClickedCount_; 15 int linkClickedCount_;
16 } 16 }
17 @property(nonatomic, readonly) int linkClickedCount; 17 @property(nonatomic, readonly) int linkClickedCount;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 [alert layout]; 94 [alert layout];
95 NSRect window_rect = [[alert window] frame]; 95 NSRect window_rect = [[alert window] frame];
96 96
97 EXPECT_GT(NSHeight(window_rect), NSHeight(initial_window_rect)); 97 EXPECT_GT(NSHeight(window_rect), NSHeight(initial_window_rect));
98 98
99 [[alert window] makeKeyAndOrderFront:nil]; 99 [[alert window] makeKeyAndOrderFront:nil];
100 100
101 [[alert linkView] performClick:nil]; 101 [[alert linkView] performClick:nil];
102 EXPECT_EQ(1, [target linkClickedCount]); 102 EXPECT_EQ(1, [target linkClickedCount]);
103 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698