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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_button_unittest.mm

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_button_unittest.mm
diff --git a/chrome/browser/ui/cocoa/constrained_window/cw_button_unittest.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_button_unittest.mm
similarity index 66%
rename from chrome/browser/ui/cocoa/constrained_window/cw_button_unittest.mm
rename to chrome/browser/ui/cocoa/constrained_window/constrained_window_button_unittest.mm
index 37c87f21a19999a296a352b52ababa9f58f82a7f..3f0628b4404969e4b0829f5128ab1946fc731040 100644
--- a/chrome/browser/ui/cocoa/constrained_window/cw_button_unittest.mm
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_button_unittest.mm
@@ -3,29 +3,29 @@
// found in the LICENSE file.
#import "base/memory/scoped_nsobject.h"
-#import "chrome/browser/ui/cocoa/constrained_window/cw_button.h"
+#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h"
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
-class CWButtonTest : public CocoaTest {
+class ConstrainedWindowButtonTest : public CocoaTest {
public:
- CWButtonTest() {
+ ConstrainedWindowButtonTest() {
NSRect frame = NSMakeRect(0, 0, 50, 30);
- button_.reset([[CWButton alloc] initWithFrame:frame]);
+ button_.reset([[ConstrainedWindowButton alloc] initWithFrame:frame]);
[button_ setTitle:@"Abcdefg"];
[button_ sizeToFit];
[[test_window() contentView] addSubview:button_];
}
protected:
- scoped_nsobject<CWButton> button_;
+ scoped_nsobject<ConstrainedWindowButton> button_;
};
-TEST_VIEW(CWButtonTest, button_)
+TEST_VIEW(ConstrainedWindowButtonTest, button_)
// Test hover, mostly to ensure nothing leaks or crashes.
-TEST_F(CWButtonTest, DisplayWithHover) {
+TEST_F(ConstrainedWindowButtonTest, DisplayWithHover) {
[[button_ cell] setIsMouseInside:NO];
[button_ display];
[[button_ cell] setIsMouseInside:YES];
@@ -33,7 +33,7 @@ TEST_F(CWButtonTest, DisplayWithHover) {
}
// Test disabled, mostly to ensure nothing leaks or crashes.
-TEST_F(CWButtonTest, DisplayWithDisable) {
+TEST_F(ConstrainedWindowButtonTest, DisplayWithDisable) {
[button_ setEnabled:YES];
[button_ display];
[button_ setEnabled:NO];
@@ -41,7 +41,7 @@ TEST_F(CWButtonTest, DisplayWithDisable) {
}
// Test pushed, mostly to ensure nothing leaks or crashes.
-TEST_F(CWButtonTest, DisplayWithPushed) {
+TEST_F(ConstrainedWindowButtonTest, DisplayWithPushed) {
[[button_ cell] setHighlighted:NO];
[button_ display];
[[button_ cell] setHighlighted:YES];
@@ -49,8 +49,8 @@ TEST_F(CWButtonTest, DisplayWithPushed) {
}
// Tracking rects
-TEST_F(CWButtonTest, TrackingRects) {
- CWButtonCell* cell = [button_ cell];
+TEST_F(ConstrainedWindowButtonTest, TrackingRects) {
+ ConstrainedWindowButtonCell* cell = [button_ cell];
EXPECT_FALSE([cell isMouseInside]);
[button_ mouseEntered:nil];

Powered by Google App Engine
This is Rietveld 408576698