diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 18:36:12 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 18:36:12 +0000 |
commit | 53ee4e180c8481c8054e5f8997376f1c79544b1f (patch) | |
tree | 0e87181b12dc6777aa26533cbc6716ce3409cff1 /chrome/browser/cocoa/status_bubble_mac_unittest.mm | |
parent | a05c2ef0084fecfdfe297abeb2a6268b73abfce5 (diff) | |
download | chromium_src-53ee4e180c8481c8054e5f8997376f1c79544b1f.zip chromium_src-53ee4e180c8481c8054e5f8997376f1c79544b1f.tar.gz chromium_src-53ee4e180c8481c8054e5f8997376f1c79544b1f.tar.bz2 |
Another pass at removal of GTMTheme. Also fixes unreadability of bookmark bar/status bubble in unthemed incognito mode.
BUG=http://crbug.com/35554 ; http://crbug.com/29845
TEST=no visible change in normal mode; themed incognito windows should look ugly still but in a different way
Review URL: http://codereview.chromium.org/650092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/status_bubble_mac_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/status_bubble_mac_unittest.mm | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/chrome/browser/cocoa/status_bubble_mac_unittest.mm b/chrome/browser/cocoa/status_bubble_mac_unittest.mm index 0d0fbb9..bb0da90 100644 --- a/chrome/browser/cocoa/status_bubble_mac_unittest.mm +++ b/chrome/browser/cocoa/status_bubble_mac_unittest.mm @@ -9,24 +9,11 @@ #import "chrome/browser/cocoa/bubble_view.h" #import "chrome/browser/cocoa/browser_test_helper.h" #import "chrome/browser/cocoa/cocoa_test_helper.h" -#import "chrome/browser/cocoa/GTMTheme.h" #import "chrome/browser/cocoa/status_bubble_mac.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/platform_test.h" -@interface StatusBubbleMacTestWindowDelegate : NSObject <GTMThemeDelegate> -@end -@implementation StatusBubbleMacTestWindowDelegate -- (GTMTheme*)gtm_themeForWindow:(NSWindow*)window { - return [[[GTMTheme alloc] init] autorelease]; -} - -- (NSPoint)gtm_themePatternPhaseForWindow:(NSWindow*)window { - return NSZeroPoint; -} -@end - // The test delegate records all of the status bubble object's state // transitions. @interface StatusBubbleMacTestDelegate : NSObject { @@ -123,14 +110,6 @@ class StatusBubbleMacTest : public CocoaTest { StatusBubbleMac* bubble_; // Strong. }; -TEST_F(StatusBubbleMacTest, Theme) { - bubble_->SetStatus(L"Theme test"); // Creates the window - [GetParent() setDelegate: - [[[StatusBubbleMacTestWindowDelegate alloc] init] autorelease]]; - EXPECT_TRUE([GetParent() gtm_theme] != nil); - EXPECT_TRUE([[GetWindow() contentView] gtm_theme] != nil); -} - TEST_F(StatusBubbleMacTest, SetStatus) { bubble_->SetStatus(L""); bubble_->SetStatus(L"This is a test"); |