| Index: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
|
| index 337bdac91d9012912d770f68735e90addd520f0c..bb4d85ba2e00502c8d31b4f8a7efa788a2dea0e9 100644
|
| --- a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
|
| @@ -60,11 +60,12 @@ class ExclusiveAccessBubbleWindowControllerTest : public CocoaProfileTest {
|
|
|
| site_instance_ = SiteInstance::Create(profile());
|
| controller_.reset([[ExclusiveAccessBubbleWindowController alloc]
|
| - initWithOwner:nil
|
| - browser:browser()
|
| - url:GURL()
|
| - bubbleType:
|
| - EXCLUSIVE_ACCESS_BUBBLE_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION]);
|
| + initWithOwner:nil
|
| + exclusive_access_manager:browser()->exclusive_access_manager()
|
| + profile:browser()->profile()
|
| + url:GURL()
|
| + bubbleType:
|
| + EXCLUSIVE_ACCESS_BUBBLE_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION]);
|
| EXPECT_TRUE([controller_ window]);
|
| }
|
|
|
| @@ -142,20 +143,23 @@ TEST_F(ExclusiveAccessBubbleWindowControllerTest, ShortcutText) {
|
| // http://crbug.com/139944
|
| TEST_F(ExclusiveAccessBubbleWindowControllerTest, DenyButtonText) {
|
| controller_.reset([[ExclusiveAccessBubbleWindowController alloc]
|
| - initWithOwner:nil
|
| - browser:browser()
|
| - url:GURL()
|
| - bubbleType:EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_BUTTONS]);
|
| + initWithOwner:nil
|
| + exclusive_access_manager:browser()->exclusive_access_manager()
|
| + profile:browser()->profile()
|
| + url:GURL()
|
| + bubbleType:EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_BUTTONS]);
|
| [controller_ initializeLabelAndButton];
|
| NSString* mouselock_deny_button_text = [controller_ denyButtonText];
|
| EXPECT_NSEQ(l10n_util::GetNSString(IDS_FULLSCREEN_DENY),
|
| mouselock_deny_button_text);
|
|
|
| controller_.reset([[ExclusiveAccessBubbleWindowController alloc]
|
| - initWithOwner:nil
|
| - browser:browser()
|
| - url:GURL()
|
| - bubbleType:EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS]);
|
| + initWithOwner:nil
|
| + exclusive_access_manager:browser()->exclusive_access_manager()
|
| + profile:browser()->profile()
|
| + url:GURL()
|
| + bubbleType:
|
| + EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS]);
|
| [controller_ initializeLabelAndButton];
|
| NSString* fullscreen_mouselock_deny_button_text =
|
| [controller_ denyButtonText];
|
|
|