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

Unified Diff: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license Created 9 years, 2 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/fullscreen_exit_bubble_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm
index 9061b9ed9bda121dd8ff3f0b3d653a43c352beca..34d140c495d1f18efc47934554d92519b40f1c45 100644
--- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm
@@ -35,17 +35,22 @@ class FullscreenExitBubbleControllerTest : public CocoaTest {
CocoaTest::SetUp();
controller_.reset(
- [[FullscreenExitBubbleController alloc] initWithOwner:nil browser:nil]);
- EXPECT_TRUE([controller_ view]);
+ [[FullscreenExitBubbleController alloc] initWithOwner:nil
+ browser:nil
+ url:GURL()
+ askPermission:NO]);
+ EXPECT_TRUE([controller_ window]);
+ }
- [[test_window() contentView] addSubview:[controller_ view]];
+ virtual void TearDown() {
+ [controller_ close];
+ controller_.reset();
+ CocoaTest::TearDown();
}
scoped_nsobject<FullscreenExitBubbleController> controller_;
};
-TEST_VIEW(FullscreenExitBubbleControllerTest, [controller_ view])
-
TEST_F(FullscreenExitBubbleControllerTest, LabelWasReplaced) {
EXPECT_FALSE([controller_ exitLabelPlaceholder]);
EXPECT_TRUE([controller_ exitLabel]);
« no previous file with comments | « chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm ('k') | chrome/browser/ui/cocoa/info_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698