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

Side by Side Diff: chrome/browser/cocoa/content_blocked_bubble_controller_unittest.mm

Issue 2822026: Mac: First run bubble. (Closed)
Patch Set: '' Created 10 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cocoa/content_blocked_bubble_controller.h" 5 #import "chrome/browser/cocoa/content_blocked_bubble_controller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/scoped_nsobject.h" 9 #include "base/scoped_nsobject.h"
10 #import "chrome/browser/cocoa/cocoa_test_helper.h" 10 #import "chrome/browser/cocoa/cocoa_test_helper.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 if (DebugUtil::BeingDebugged()) 42 if (DebugUtil::BeingDebugged())
43 [parent.get() orderFront:nil]; 43 [parent.get() orderFront:nil];
44 else 44 else
45 [parent.get() orderBack:nil]; 45 [parent.get() orderBack:nil];
46 46
47 ContentBlockedBubbleController* controller = [ContentBlockedBubbleController 47 ContentBlockedBubbleController* controller = [ContentBlockedBubbleController
48 showForModel:new DummyContentSettingBubbleModel(settingsType) 48 showForModel:new DummyContentSettingBubbleModel(settingsType)
49 parentWindow:parent 49 parentWindow:parent
50 anchoredAt:NSMakePoint(50, 20)]; 50 anchoredAt:NSMakePoint(50, 20)];
51 EXPECT_TRUE(controller != nil); 51 EXPECT_TRUE(controller != nil);
52 [controller showWindow:nil]; 52 EXPECT_TRUE([[controller window] isVisible]);
53 [parent.get() close]; 53 [parent.get() close];
54 } 54 }
55 } 55 }
56 56
57 } // namespace 57 } // namespace
58 58
59 59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698