Index: chrome/browser/cocoa/status_bubble_mac_unittest.mm |
=================================================================== |
--- chrome/browser/cocoa/status_bubble_mac_unittest.mm (revision 24707) |
+++ chrome/browser/cocoa/status_bubble_mac_unittest.mm (working copy) |
@@ -10,17 +10,7 @@ |
#include "chrome/browser/cocoa/status_bubble_mac.h" |
#include "googleurl/src/gurl.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#import "third_party/GTM/AppKit/GTMTheme.h" |
-@interface StatusBubbleMacTestWindowDelegate : NSObject <GTMThemeDelegate>; |
-@end |
-@implementation StatusBubbleMacTestWindowDelegate |
-- (GTMTheme *)gtm_themeForWindow:(NSWindow *)window { |
- NSLog(@"gettheme"); |
- return [[[GTMTheme alloc] init] autorelease]; |
-} |
-@end |
- |
class StatusBubbleMacTest : public testing::Test { |
public: |
StatusBubbleMacTest() { |
@@ -39,24 +29,11 @@ |
NSString* GetURLText() { |
return bubble_->url_text_; |
} |
- NSWindow* GetWindow() { |
- return bubble_->window_; |
- } |
- NSWindow* GetParent() { |
- return bubble_->parent_; |
- } |
+ |
CocoaTestHelper cocoa_helper_; // Inits Cocoa, creates window, etc... |
scoped_ptr<StatusBubbleMac> bubble_; |
}; |
-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"); |